mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 03:35:09 +01:00
@@ -78,7 +78,12 @@ namespace Guard
|
||||
char *bufend = (char *)strchr(buffer, 0);
|
||||
vsnprintf(bufend, sizeof(buffer) - (bufend - buffer), message, args);
|
||||
}
|
||||
int result = MessageBox(nullptr, buffer, OPENRCT2_NAME, MB_ABORTRETRYIGNORE | MB_ICONEXCLAMATION);
|
||||
#ifdef __TEST__
|
||||
// Abort if we are building for testing
|
||||
abort();
|
||||
#else
|
||||
// Show message box if we are not building for testing
|
||||
int result = MessageBoxA(nullptr, buffer, OPENRCT2_NAME, MB_ABORTRETRYIGNORE | MB_ICONEXCLAMATION);
|
||||
if (result == IDABORT)
|
||||
{
|
||||
#ifdef USE_BREAKPAD
|
||||
@@ -88,6 +93,7 @@ namespace Guard
|
||||
assert(false);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
assert(false);
|
||||
#endif
|
||||
|
||||
@@ -52,7 +52,7 @@ utf8 **windows_get_command_line_args(int *outNumArgs);
|
||||
|
||||
static HMODULE _dllModule = NULL;
|
||||
|
||||
#ifdef NO_RCT2
|
||||
#if defined(NO_RCT2) && !defined(__NOENTRYPOINT__)
|
||||
|
||||
/**
|
||||
* Windows entry point to OpenRCT2 without a console window.
|
||||
|
||||
Reference in New Issue
Block a user