mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 08:01:50 +00:00
- setup console handlers earlier to make them available during exit cleanup
https://forum.zdoom.org/viewtopic.php?t=70093
This commit is contained in:
parent
43a3188bdf
commit
787b0d2480
1 changed files with 11 additions and 10 deletions
|
@ -3146,16 +3146,6 @@ static int D_DoomMain_Internal (void)
|
|||
|
||||
// reinit from here
|
||||
|
||||
ConsoleCallbacks cb = {
|
||||
D_UserInfoChanged,
|
||||
D_SendServerInfoChange,
|
||||
D_SendServerFlagChange,
|
||||
G_GetUserCVar,
|
||||
[]() { return gamestate != GS_FULLCONSOLE && gamestate != GS_STARTUP; }
|
||||
};
|
||||
|
||||
C_InstallHandlers(&cb);
|
||||
|
||||
do
|
||||
{
|
||||
PClass::StaticInit();
|
||||
|
@ -3642,6 +3632,17 @@ int GameMain()
|
|||
{
|
||||
int ret = 0;
|
||||
GameTicRate = TICRATE;
|
||||
|
||||
ConsoleCallbacks cb = {
|
||||
D_UserInfoChanged,
|
||||
D_SendServerInfoChange,
|
||||
D_SendServerFlagChange,
|
||||
G_GetUserCVar,
|
||||
[]() { return gamestate != GS_FULLCONSOLE && gamestate != GS_STARTUP; }
|
||||
};
|
||||
|
||||
C_InstallHandlers(&cb);
|
||||
|
||||
try
|
||||
{
|
||||
ret = D_DoomMain_Internal();
|
||||
|
|
Loading…
Reference in a new issue