aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/world.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2015-12-21 13:14:11 +0100
committerEugene Sandulenko2015-12-27 15:40:58 +0100
commit6590f2c3f7ab594ae728409d6dca3251b36798cf (patch)
treef81d1a8406adab1a77fe4bb11765bc13d60d1e4f /engines/wage/world.cpp
parentd5c3b45756b7aced60b39d621920ba9b6b8ab09b (diff)
downloadscummvm-rg350-6590f2c3f7ab594ae728409d6dca3251b36798cf.tar.gz
scummvm-rg350-6590f2c3f7ab594ae728409d6dca3251b36798cf.tar.bz2
scummvm-rg350-6590f2c3f7ab594ae728409d6dca3251b36798cf.zip
WAGE: Added stubs for menu loading
Diffstat (limited to 'engines/wage/world.cpp')
-rw-r--r--engines/wage/world.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp
index d84f31bfe4..0fd31c6232 100644
--- a/engines/wage/world.cpp
+++ b/engines/wage/world.cpp
@@ -230,7 +230,33 @@ bool World::loadWorld(Common::MacResManager *resMan) {
_patterns.push_back(pattern);
}
}
+ delete res;
+ }
+
+ res = resMan->getResource(MKTAG('M','E','N','U'), 2001);
+ if (res != NULL) {
+ warning("STUB: aboutMenu");
+ //String aboutMenuItemName = appleMenu[1].split(";")[0];
+ //world.setAboutMenuItemName(aboutMenuItemName);
+ delete res;
+ }
+ res = resMan->getResource(MKTAG('M','E','N','U'), 2004);
+ if (res != NULL) {
+ warning("STUB: commandsMenu");
+ //world.setCommandsMenuName(commandsMenu[0]);
+ //world.setDefaultCommandsMenu(commandsMenu[1]);
+ delete res;
+ }
+ res = resMan->getResource(MKTAG('M','E','N','U'), 2005);
+ if (res != NULL) {
+ warning("STUB: weaponsMenu");
+ //world.setWeaponsMenuName(weaponsMenu[0]);
+ delete res;
}
+ // TODO: Read Apple menu and get the name of that menu item..
+
+ // store global info in state object for use with save/load actions
+ //world.setCurrentState(initialState); // pass off the state object to the world
return true;
}