- add a system interface for CheckCheatmode and moved some sound code to the backend.

This commit is contained in:
Christoph Oelckers 2022-10-02 15:14:11 +02:00
commit 8aaab153fa
25 changed files with 187 additions and 164 deletions

View file

@ -43,6 +43,7 @@
#include "engineerrors.h"
#include "printf.h"
#include "palutil.h"
#include "i_interface.h"
struct FLatchedValue
@ -1462,7 +1463,7 @@ EXTERN_CVAR(Bool, sv_cheats);
void FBaseCVar::CmdSet (const char *newval)
{
if ((GetFlags() & CVAR_CHEAT) && CheckCheatmode ())
if ((GetFlags() & CVAR_CHEAT) && sysCallbacks.CheckCheatmode && sysCallbacks.CheckCheatmode(true, false))
return;
MarkUnsafe();