aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage')
-rw-r--r--engines/wage/entities.cpp2
-rw-r--r--engines/wage/world.cpp26
2 files changed, 26 insertions, 2 deletions
diff --git a/engines/wage/entities.cpp b/engines/wage/entities.cpp
index d75a348bbc..c499283e07 100644
--- a/engines/wage/entities.cpp
+++ b/engines/wage/entities.cpp
@@ -62,8 +62,6 @@ Scene::Scene(String name, Common::SeekableReadStream *data) {
_name = name;
_design = new Design(data);
- warning("Scene %s", _name.c_str());
-
setDesignBounds(readRect(data));
_worldY = data->readSint16BE();
_worldX = data->readSint16BE();
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;
}