From a2abbf919df8a07df872d69f75d372579bbe271a Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 5 Nov 2006 06:26:45 +0000 Subject: Add inital load/save code changes for earlier games and cleanup svn-id: r24622 --- engines/agos/script_e2.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'engines/agos/script_e2.cpp') 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(); -- cgit v1.2.3