mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
- fixed potential resetting of bindings
Quitting GZDoom during initialization could lead to unbound game controls https://forum.zdoom.org/viewtopic.php?t=65945
This commit is contained in:
parent
cf9150b6ca
commit
6ab9991e8d
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ FGameConfigFile::FGameConfigFile ()
|
|||
|
||||
FString pathname;
|
||||
|
||||
OkayToWrite = false; // Do not allow saving of the config before DoGameSetup()
|
||||
OkayToWrite = false; // Do not allow saving of the config before DoKeySetup()
|
||||
bModSetup = false;
|
||||
pathname = GetConfigPath (true);
|
||||
ChangePathName (pathname);
|
||||
|
@ -569,7 +569,6 @@ void FGameConfigFile::DoGameSetup (const char *gamename)
|
|||
}
|
||||
}
|
||||
}
|
||||
OkayToWrite = true;
|
||||
}
|
||||
|
||||
// Moved from DoGameSetup so that it can happen after wads are loaded
|
||||
|
@ -603,6 +602,7 @@ void FGameConfigFile::DoKeySetup(const char *gamename)
|
|||
}
|
||||
}
|
||||
}
|
||||
OkayToWrite = true;
|
||||
}
|
||||
|
||||
// Like DoGameSetup(), but for mod-specific cvars.
|
||||
|
|
Loading…
Reference in a new issue