Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion GeneralsMD/Code/Main/WinMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -875,8 +875,18 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
#endif

// register windows class and create application window
if(!TheGlobalData->m_headless && initializeAppWindows(hInstance, nCmdShow, TheGlobalData->m_windowed) == false)
// TheSuperHackers @fix bobtista 03/02/2026 Set DX8Wrapper_IsWindowed to false in headless
// mode so that ignoringAsserts() works correctly throughout the entire process lifetime,
// including during shutdown after TheGlobalData has been destroyed.
if (TheGlobalData->m_headless)
{
extern bool DX8Wrapper_IsWindowed;
DX8Wrapper_IsWindowed = false;
Comment thread
bobtista marked this conversation as resolved.
Outdated
}
else if (initializeAppWindows(hInstance, nCmdShow, TheGlobalData->m_windowed) == false)
{
return exitcode;
}

// save our application instance for future use
ApplicationHInstance = hInstance;
Expand Down
Loading