diff options
author | Littleboy | 2012-08-27 23:29:09 -0400 |
---|---|---|
committer | Littleboy | 2012-08-27 23:30:23 -0400 |
commit | 6ab8db638e4a1d547ee67db067b5d6c3d6c940a4 (patch) | |
tree | 981fed8e6621957dde6ba8f5ec90c67ca36d50f1 /engines/lastexpress/debug.cpp | |
parent | ee8581b778b83bc01af0f26bc8b3680ebc266700 (diff) | |
download | scummvm-rg350-6ab8db638e4a1d547ee67db067b5d6c3d6c940a4.tar.gz scummvm-rg350-6ab8db638e4a1d547ee67db067b5d6c3d6c940a4.tar.bz2 scummvm-rg350-6ab8db638e4a1d547ee67db067b5d6c3d6c940a4.zip |
LASTEXPRESS: Implement more savegame loading
- Rename existing function to load the last saved game
- Remove loadgame debugger command
Diffstat (limited to 'engines/lastexpress/debug.cpp')
-rw-r--r-- | engines/lastexpress/debug.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/engines/lastexpress/debug.cpp b/engines/lastexpress/debug.cpp index 3994cb0bcb..db3a3e3962 100644 --- a/engines/lastexpress/debug.cpp +++ b/engines/lastexpress/debug.cpp @@ -85,7 +85,6 @@ Debugger::Debugger(LastExpressEngine *engine) : _engine(engine), _command(NULL), DCmd_Register("entity", WRAP_METHOD(Debugger, cmdEntity)); // Misc - DCmd_Register("loadgame", WRAP_METHOD(Debugger, cmdLoadGame)); DCmd_Register("chapter", WRAP_METHOD(Debugger, cmdSwitchChapter)); DCmd_Register("clear", WRAP_METHOD(Debugger, cmdClear)); @@ -1119,30 +1118,6 @@ label_error: } /** - * Command: loads a game - * - * @param argc The argument count. - * @param argv The values. - * - * @return true if it was handled, false otherwise - */ -bool Debugger::cmdLoadGame(int argc, const char **argv) { - if (argc == 2) { - int id = getNumber(argv[1]); - - if (id == 0 || id > 6) - goto error; - - getSaveLoad()->loadGame((GameId)(id - 1)); - } else { -error: - DebugPrintf("Syntax: loadgame <id> (id=1-6)\n"); - } - - return true; -} - -/** * Command: switch to a specific chapter * * @param argc The argument count. |