diff options
author | Eugene Sandulenko | 2015-12-21 13:14:11 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-27 15:40:58 +0100 |
commit | 6590f2c3f7ab594ae728409d6dca3251b36798cf (patch) | |
tree | f81d1a8406adab1a77fe4bb11765bc13d60d1e4f /engines | |
parent | d5c3b45756b7aced60b39d621920ba9b6b8ab09b (diff) | |
download | scummvm-rg350-6590f2c3f7ab594ae728409d6dca3251b36798cf.tar.gz scummvm-rg350-6590f2c3f7ab594ae728409d6dca3251b36798cf.tar.bz2 scummvm-rg350-6590f2c3f7ab594ae728409d6dca3251b36798cf.zip |
WAGE: Added stubs for menu loading
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/entities.cpp | 2 | ||||
-rw-r--r-- | engines/wage/world.cpp | 26 |
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; } |