mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- use a command line switch to set Duke compatibility
At this point the command line CCMD execution has not run yet, so setting the CVAR does not work as expected.
This commit is contained in:
parent
d63d9f80bb
commit
91b7770e84
1 changed files with 8 additions and 0 deletions
|
@ -309,6 +309,14 @@ CVAR(Bool, duke_compatibility_15, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||||
|
|
||||||
void CheckFrontend(int flags)
|
void CheckFrontend(int flags)
|
||||||
{
|
{
|
||||||
|
bool duke_compat = duke_compatibility_15;
|
||||||
|
// This point is too early to have cmdline CVAR checkers working so it must be with a switch.
|
||||||
|
auto c = Args->CheckValue("-duke_compatibility_15");
|
||||||
|
if (c)
|
||||||
|
{
|
||||||
|
if (strtol(c, nullptr, 0)) duke_compatibility_15 = true;
|
||||||
|
else duke_compatibility_15 = false;
|
||||||
|
}
|
||||||
if (flags & GAMEFLAG_BLOOD)
|
if (flags & GAMEFLAG_BLOOD)
|
||||||
{
|
{
|
||||||
gi = Blood::CreateInterface();
|
gi = Blood::CreateInterface();
|
||||||
|
|
Loading…
Reference in a new issue