fix(headless): Set DX8Wrapper_IsWindowed to false to suppress assertion dialogs during shutdown#2298
Conversation
… suppress assertion dialogs during shutdown
Greptile Overview
|
| Filename | Overview |
|---|---|
| GeneralsMD/Code/Main/WinMain.cpp | Sets DX8Wrapper_IsWindowed to false in headless mode to ensure ignoringAsserts() works throughout process lifetime, preventing assertion dialogs during shutdown |
|
|
||
| // register windows class and create application window | ||
| if(!TheGlobalData->m_headless && initializeAppWindows(hInstance, nCmdShow, TheGlobalData->m_windowed) == false) | ||
| // TheSuperHackers @fix bobtista 02/03/2026 Set DX8Wrapper_IsWindowed to false in headless |
Summary
DX8Wrapper_IsWindowedto false in headless mode soignoringAsserts()works - particularly during shutdown afterTheGlobalDatahas been destroyed.Testing
-replay test.rep -headless -ignoreAsserts)