aboutsummaryrefslogtreecommitdiff
path: root/scumm/debugger.cpp
diff options
context:
space:
mode:
authorJames Brown2003-01-26 06:17:25 +0000
committerJames Brown2003-01-26 06:17:25 +0000
commita0b77e7389686d38cf938136e729a5d6fa2dd8be (patch)
tree0a116455d8361189b9bdfb49f49ec49d5de6d2a7 /scumm/debugger.cpp
parent5956e5ee183917efa250ce792d54243399a3aadb (diff)
downloadscummvm-rg350-a0b77e7389686d38cf938136e729a5d6fa2dd8be.tar.gz
scummvm-rg350-a0b77e7389686d38cf938136e729a5d6fa2dd8be.tar.bz2
scummvm-rg350-a0b77e7389686d38cf938136e729a5d6fa2dd8be.zip
LCA03 sync: Modified version of the untrap patch, debugger
savegame/loadgame changes, attempts at making the ComI save/load screen (F1) work. The savegame part of the screen does not work due to a crash, the load part SHOULD... but something resets the saveload flags before they are processed (help! :) svn-id: r6545
Diffstat (limited to 'scumm/debugger.cpp')
-rw-r--r--scumm/debugger.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp
index 9423a23272..169df89cbb 100644
--- a/scumm/debugger.cpp
+++ b/scumm/debugger.cpp
@@ -284,25 +284,25 @@ bool ScummDebugger::Cmd_LoadGame(int argc, const char **argv) {
_s->_saveLoadCompatible = false;
_detach_now = true;
- } else {
- Debug_Printf("Syntax: savegame <slotnum>\n");
+ return false;
}
- return false;
+
+ Debug_Printf("Syntax: loadgame <slotnum>\n");
+ return true;
}
bool ScummDebugger::Cmd_SaveGame(int argc, const char **argv) {
- if (argc > 1) {
+ if (argc > 2) {
int slot = atoi(argv[1]);
-
+
+ strcpy(_s->_saveLoadName, argv[2]);
_s->_saveLoadSlot = slot;
_s->_saveLoadFlag = 1;
_s->_saveLoadCompatible = false;
-
- _detach_now = true;
- } else {
- Debug_Printf("Syntax: savegame <slotnum>\n");
- }
- return false;
+ } else
+ Debug_Printf("Syntax: savegame <slotnum> <name>\n");
+
+ return true;
}
bool ScummDebugger::Cmd_Actor(int argc, const char **argv) {