mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 13:44:58 +00:00
feat: Disable error dialog in headless environments for SdlWindowService
This commit is contained in:
@@ -35,11 +35,12 @@ void ThrowSdlErrorIfFailed(bool success, const char* context) {
|
||||
}
|
||||
|
||||
void ShowErrorDialog(const char* title, const std::string& message) {
|
||||
SDL_ShowSimpleMessageBox(
|
||||
SDL_MESSAGEBOX_ERROR,
|
||||
title,
|
||||
message.c_str(),
|
||||
nullptr);
|
||||
// Disabled for headless environments
|
||||
// SDL_ShowSimpleMessageBox(
|
||||
// SDL_MESSAGEBOX_ERROR,
|
||||
// title,
|
||||
// message.c_str(),
|
||||
// nullptr);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user