- route all accesses to gameaction from the backend through the sysCallbacks.

gameactions are frontend specific so this needs to be decoupled.
This commit is contained in:
Christoph Oelckers 2021-05-22 12:58:07 +02:00
commit 9898ee542c
6 changed files with 39 additions and 29 deletions

View file

@ -2997,6 +2997,12 @@ static void System_ToggleFullConsole()
gameaction = ga_fullconsole;
}
static void System_StartCutscene(bool blockui)
{
gameaction = blockui ? ga_intro : ga_intermission;
}
bool CheckSkipGameOptionBlock(const char* str);
//==========================================================================
@ -3048,7 +3054,7 @@ static int D_DoomMain_Internal (void)
nullptr,
nullptr,
System_ToggleFullConsole,
nullptr,
System_StartCutscene,
};