aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script_e2.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-11-05 06:26:45 +0000
committerTravis Howell2006-11-05 06:26:45 +0000
commita2abbf919df8a07df872d69f75d372579bbe271a (patch)
tree24602e294fe19c816983eef2b43a9034fdf7f549 /engines/agos/script_e2.cpp
parentea9baa0347f68a3eca4953e3daf828650d4e4190 (diff)
downloadscummvm-rg350-a2abbf919df8a07df872d69f75d372579bbe271a.tar.gz
scummvm-rg350-a2abbf919df8a07df872d69f75d372579bbe271a.tar.bz2
scummvm-rg350-a2abbf919df8a07df872d69f75d372579bbe271a.zip
Add inital load/save code changes for earlier games and cleanup
svn-id: r24622
Diffstat (limited to 'engines/agos/script_e2.cpp')
-rw-r--r--engines/agos/script_e2.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/agos/script_e2.cpp b/engines/agos/script_e2.cpp
index ee73c0f771..64df361a56 100644
--- a/engines/agos/script_e2.cpp
+++ b/engines/agos/script_e2.cpp
@@ -48,7 +48,7 @@ void AGOSEngine::setupElvira2Opcodes(OpcodeProc *op) {
op[75] = &AGOSEngine::oe1_pcName;
op[79] = &AGOSEngine::oe1_isCalled;
op[83] = &AGOSEngine::oe1_rescan;
- op[89] = &AGOSEngine::oe1_loadGame;
+ op[89] = &AGOSEngine::oe2_loadGame;
op[94] = &AGOSEngine::oe1_findMaster;
op[95] = &AGOSEngine::oe1_nextMaster;
op[98] = &AGOSEngine::oe1_animate;
@@ -127,6 +127,14 @@ void AGOSEngine::oe2_pObj() {
showMessageFormat((const char *)getStringPtrByID(subObject->objectFlagValue[0]));
}
+void AGOSEngine::oe2_loadGame() {
+ // 89: load game
+ uint16 stringId = getNextStringID();
+
+ debug(0, "oe1_loadGame: stub (%s)", (const char *)getStringPtrByID(stringId));
+ loadGame((const char *)getStringPtrByID(stringId));
+}
+
void AGOSEngine::oe2_drawItem() {
// 113: draw item
Item *i = getNextItemPtr();