M_SaveDefaults is also not part of the common engine backend.

This commit is contained in:
Christoph Oelckers 2024-11-23 20:26:06 +01:00
parent ca3b0737ea
commit e0778e23eb
2 changed files with 12 additions and 12 deletions

View file

@ -41,7 +41,6 @@
#include "c_cvars.h"
#include "c_bind.h"
#include "c_dispatch.h"
#include "m_misc.h"
#include "menu.h"
#include "vm.h"
@ -1033,17 +1032,6 @@ DEFINE_ACTION_FUNCTION(_CVar, FindCVar)
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));
}
//=============================================================================
//
//

View file

@ -66,6 +66,7 @@
#include "gameconfigfile.h"
#include "gstrings.h"
#include "vm.h"
FGameConfigFile *GameConfig;
@ -691,3 +692,14 @@ CCMD(openscreenshots)
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));
}