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
commit e0778e23eb
2 changed files with 12 additions and 12 deletions

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));
}