mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- add -compatmode for setting a compatibility mode on startup
As a replacement for +compatmode not working as intended.
This commit is contained in:
parent
3fb292ac71
commit
47c7734042
1 changed files with 7 additions and 0 deletions
|
@ -3119,6 +3119,13 @@ static int D_InitGame(const FIWADInfo* iwad_info, TArray<FString>& allwads, TArr
|
||||||
|
|
||||||
// Base systems have been inited; enable cvar callbacks
|
// Base systems have been inited; enable cvar callbacks
|
||||||
FBaseCVar::EnableCallbacks ();
|
FBaseCVar::EnableCallbacks ();
|
||||||
|
|
||||||
|
// +compatmode cannot be used on the command line, so use this as a substitute
|
||||||
|
auto compatmodeval = Args->CheckValue("-compatmode");
|
||||||
|
if (compatmodeval)
|
||||||
|
{
|
||||||
|
compatmode = (int)strtoll(compatmodeval, nullptr, 10);
|
||||||
|
}
|
||||||
|
|
||||||
if (!batchrun) Printf ("S_Init: Setting up sound.\n");
|
if (!batchrun) Printf ("S_Init: Setting up sound.\n");
|
||||||
S_Init ();
|
S_Init ();
|
||||||
|
|
Loading…
Reference in a new issue