save_cheats option, also fixed buffer overflow

This commit is contained in:
Zeno Rogue committed 2024-03-27 23:52:22 +01:00
1 parent b07987b2f4
commit 5efacd787d
2 files changed
+16 -5

No files matched your search

+3
View File
@@ -660,6 +660,9 @@ int read_cheat_args() {
PHASEFROM(2);
shift(); vid.stereo_mode = eStereo(argi());
}
else if(argis("-save-cheats")) {
save_cheats = true;
}
else if(argis("-cmove")) {
PHASE(3); shift();
for(char c: args()) cheat_move(c);