Codechange: [Win32] Disable assert message box when no GUI (#12291)
This commit is contained in:
@@ -126,6 +126,8 @@ const char *VideoDriver_Dedicated::Start(const StringList &)
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
/* Disable the MSVC assertion message box. */
|
/* Disable the MSVC assertion message box. */
|
||||||
_set_error_mode(_OUT_TO_STDERR);
|
_set_error_mode(_OUT_TO_STDERR);
|
||||||
|
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
|
||||||
|
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Debug(driver, 1, "Loading dedicated server");
|
Debug(driver, 1, "Loading dedicated server");
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ const char *VideoDriver_Null::Start(const StringList &parm)
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
/* Disable the MSVC assertion message box. */
|
/* Disable the MSVC assertion message box. */
|
||||||
_set_error_mode(_OUT_TO_STDERR);
|
_set_error_mode(_OUT_TO_STDERR);
|
||||||
|
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
|
||||||
|
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
this->UpdateAutoResolution();
|
this->UpdateAutoResolution();
|
||||||
|
|||||||
Reference in New Issue
Block a user