Skip to content

Commit

Permalink
WAGE: Added stubs for menu loading
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 27, 2015
1 parent d5c3b45 commit 6590f2c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
2 changes: 0 additions & 2 deletions engines/wage/entities.cpp
Expand Up @@ -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();
Expand Down
26 changes: 26 additions & 0 deletions engines/wage/world.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6590f2c

Please sign in to comment.