// get the demo name
strlcpy (name, Cmd_Argv(1), sizeof (name));
- FS_SetExtension (name, ".dem", sizeof (name), true);
+ FS_SetExtension (name, ".dem", sizeof (name), IS_HARDENED);
// start the map up
if (c > 2)
// open the demo file
strlcpy (name, Cmd_Argv(1), sizeof (name));
- FS_SetExtension (name, ".dem", sizeof (name), true);
+ FS_SetExtension (name, ".dem", sizeof (name), IS_HARDENED);
f = FS_OpenVirtualFile(name, false);
if (!f)
{
}
strlcpy (name, Cmd_Argv(1), sizeof (name));
- FS_SetExtension (name, ".sav", sizeof (name), true);
+ FS_SetExtension (name, ".sav", sizeof (name), IS_HARDENED);
Host_Savegame_to(prog, name);
}
}
strlcpy (filename, Cmd_Argv(1), sizeof(filename));
- FS_SetExtension (filename, ".sav", sizeof (filename), true);
+ FS_SetExtension (filename, ".sav", sizeof (filename), IS_HARDENED);
Con_Printf("Loading game from %s...\n", filename);
#define DP_FUNC_NORETURN
#endif
+#ifdef HARDENING
+# define IS_HARDENED false
+#else
+# define IS_HARDENED true
+#endif
+
#ifdef ANTICHEAT
#define _GNU_SOURCE // for memmem
#endif
return; // we already have a demo
strlcpy(name, filename, sizeof(name));
- FS_SetExtension(name, ".dem", sizeof(name), true);
+ FS_SetExtension(name, ".dem", sizeof(name), IS_HARDENED);
Con_Printf("Recording demo for # %d (%s) to %s\n", PRVM_NUM_FOR_EDICT(client->edict), client->netaddress, name);