mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-12 07:05:21 +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
|
// reinit from here
|
||||||
|
|
||||||
ConsoleCallbacks cb = {
|
|
||||||
D_UserInfoChanged,
|
|
||||||
D_SendServerInfoChange,
|
|
||||||
D_SendServerFlagChange,
|
|
||||||
G_GetUserCVar,
|
|
||||||
[]() { return gamestate != GS_FULLCONSOLE && gamestate != GS_STARTUP; }
|
|
||||||
};
|
|
||||||
|
|
||||||
C_InstallHandlers(&cb);
|
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
PClass::StaticInit();
|
PClass::StaticInit();
|
||||||
|
@ -3642,6 +3632,17 @@ int GameMain()
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
GameTicRate = TICRATE;
|
GameTicRate = TICRATE;
|
||||||
|
|
||||||
|
ConsoleCallbacks cb = {
|
||||||
|
D_UserInfoChanged,
|
||||||
|
D_SendServerInfoChange,
|
||||||
|
D_SendServerFlagChange,
|
||||||
|
G_GetUserCVar,
|
||||||
|
[]() { return gamestate != GS_FULLCONSOLE && gamestate != GS_STARTUP; }
|
||||||
|
};
|
||||||
|
|
||||||
|
C_InstallHandlers(&cb);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ret = D_DoomMain_Internal();
|
ret = D_DoomMain_Internal();
|
||||||
|
|
Loading…
Reference in a new issue