File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
GeneralsMD/Code/GameEngine/Source/Common
Generals/Code/GameEngine/Source/Common Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,13 @@ Int parseHeadless(char *args[], int num)
414414 TheWritableGlobalData->m_playIntro = FALSE ;
415415 TheWritableGlobalData->m_afterIntro = TRUE ;
416416 TheWritableGlobalData->m_playSizzle = FALSE ;
417+
418+ // TheSuperHackers @fix bobtista 03/02/2026 Set DX8Wrapper_IsWindowed to false in headless
419+ // mode so that ignoringAsserts() works correctly throughout the entire process lifetime,
420+ // including during shutdown after TheGlobalData has been destroyed.
421+ extern bool DX8Wrapper_IsWindowed;
422+ DX8Wrapper_IsWindowed = false ;
423+
417424 return 1 ;
418425}
419426
Original file line number Diff line number Diff line change @@ -414,6 +414,13 @@ Int parseHeadless(char *args[], int num)
414414 TheWritableGlobalData->m_playIntro = FALSE ;
415415 TheWritableGlobalData->m_afterIntro = TRUE ;
416416 TheWritableGlobalData->m_playSizzle = FALSE ;
417+
418+ // TheSuperHackers @fix bobtista 03/02/2026 Set DX8Wrapper_IsWindowed to false in headless
419+ // mode so that ignoringAsserts() works correctly throughout the entire process lifetime,
420+ // including during shutdown after TheGlobalData has been destroyed.
421+ extern bool DX8Wrapper_IsWindowed;
422+ DX8Wrapper_IsWindowed = false ;
423+
417424 return 1 ;
418425}
419426
You can’t perform that action at this time.
0 commit comments