mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-07 09:01:57 +00:00
M_SaveDefaults is also not part of the common engine backend.
This commit is contained in:
parent
ca3b0737ea
commit
e0778e23eb
2 changed files with 12 additions and 12 deletions
|
@ -41,7 +41,6 @@
|
||||||
#include "c_cvars.h"
|
#include "c_cvars.h"
|
||||||
#include "c_bind.h"
|
#include "c_bind.h"
|
||||||
#include "c_dispatch.h"
|
#include "c_dispatch.h"
|
||||||
#include "m_misc.h"
|
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "vm.h"
|
#include "vm.h"
|
||||||
|
@ -1033,17 +1032,6 @@ DEFINE_ACTION_FUNCTION(_CVar, FindCVar)
|
||||||
ACTION_RETURN_POINTER(FindCVar(name.GetChars(), nullptr));
|
ACTION_RETURN_POINTER(FindCVar(name.GetChars(), nullptr));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int SaveConfig()
|
|
||||||
{
|
|
||||||
return M_SaveDefaults(nullptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
DEFINE_ACTION_FUNCTION_NATIVE(_CVar, SaveConfig, SaveConfig)
|
|
||||||
{
|
|
||||||
PARAM_PROLOGUE;
|
|
||||||
ACTION_RETURN_INT(M_SaveDefaults(nullptr));
|
|
||||||
}
|
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
|
|
||||||
#include "gameconfigfile.h"
|
#include "gameconfigfile.h"
|
||||||
#include "gstrings.h"
|
#include "gstrings.h"
|
||||||
|
#include "vm.h"
|
||||||
|
|
||||||
FGameConfigFile *GameConfig;
|
FGameConfigFile *GameConfig;
|
||||||
|
|
||||||
|
@ -691,3 +692,14 @@ CCMD(openscreenshots)
|
||||||
I_OpenShellFolder(autoname.GetChars());
|
I_OpenShellFolder(autoname.GetChars());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int SaveConfig()
|
||||||
|
{
|
||||||
|
return M_SaveDefaults(nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION_NATIVE(_CVar, SaveConfig, SaveConfig)
|
||||||
|
{
|
||||||
|
PARAM_PROLOGUE;
|
||||||
|
ACTION_RETURN_INT(M_SaveDefaults(nullptr));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue