Skip to content

Commit 7e9370d

Browse files
committed
feat(headless): replicate gogoMessageBox stub to Generals
1 parent 6bdaf3c commit 7e9370d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Generals/Code/GameEngine/Include/GameClient/GameWindowManager.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,16 @@ class GameWindowManagerDummy : public GameWindowManager
389389

390390
virtual GameWindow *allocateNewWindow() override { return newInstance(GameWindowDummy); }
391391

392+
// TheSuperHackers @fix bobtista 19/07/2026 Return no message box window in headless mode
393+
virtual GameWindow *gogoMessageBox(Int x, Int y, Int width, Int height, UnsignedShort buttonFlags,
394+
UnicodeString titleString, UnicodeString bodyString,
395+
GameWinMsgBoxFunc yesCallback, GameWinMsgBoxFunc noCallback,
396+
GameWinMsgBoxFunc okCallback, GameWinMsgBoxFunc cancelCallback) override { return nullptr; }
397+
virtual GameWindow *gogoMessageBox(Int x, Int y, Int width, Int height, UnsignedShort buttonFlags,
398+
UnicodeString titleString, UnicodeString bodyString,
399+
GameWinMsgBoxFunc yesCallback, GameWinMsgBoxFunc noCallback,
400+
GameWinMsgBoxFunc okCallback, GameWinMsgBoxFunc cancelCallback, Bool useLogo) override { return nullptr; }
401+
392402
virtual GameWinDrawFunc getPushButtonImageDrawFunc() override { return nullptr; }
393403
virtual GameWinDrawFunc getPushButtonDrawFunc() override { return nullptr; }
394404
virtual GameWinDrawFunc getCheckBoxImageDrawFunc() override { return nullptr; }

0 commit comments

Comments
 (0)