- add a system interface for CheckCheatmode and moved some sound code to the backend.
This commit is contained in:
parent
75afc69306
commit
8aaab153fa
25 changed files with 187 additions and 164 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -59,8 +59,6 @@ extern bool ParsingKeyConf, UnsafeExecutionContext;
|
|||
extern FString StoredWarp; // [RH] +warp at the command line
|
||||
|
||||
|
||||
extern bool CheckCheatmode (bool printmsg = true, bool sponly = false);
|
||||
|
||||
FExecList *C_ParseCmdLineParams(FExecList *exec);
|
||||
|
||||
// Add commands to the console as if they were typed in. Can handle wait
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue