MACVENTURE: Add generic non-persistent container loading
This commit is contained in:
parent
9fc9e33981
commit
56e8ac873b
2 changed files with 60 additions and 64 deletions
|
@ -19,7 +19,7 @@ World::World(MacVentureEngine *engine, Common::MacResManager *resMan) {
|
|||
|
||||
_saveGame = new SaveGame(_engine, saveGameRes);
|
||||
|
||||
_objectConstants = new Container<uint16>("Shadowgate II/Shadow Object.TXT");
|
||||
_objectConstants = new Container<uint16>("Shadowgate II/Shadow Graphic");
|
||||
|
||||
delete saveGameRes;
|
||||
saveGameFile.close();
|
||||
|
@ -47,7 +47,7 @@ bool World::loadStartGameFileName() {
|
|||
res->read(fileName, length);
|
||||
fileName[length] = '\0';
|
||||
_startGameFileName = Common::String(fileName, length);
|
||||
_startGameFileName.replace(_startGameFileName.end(), _startGameFileName.end(), ".TXT");
|
||||
_startGameFileName.replace(_startGameFileName.end(), _startGameFileName.end(), ".bin");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue