diff options
author | Filippos Karapetis | 2007-09-03 01:49:24 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-09-03 01:49:24 +0000 |
commit | 30c479a7e460f035d85313a91ae6fc6be4cfe565 (patch) | |
tree | f11a34d63c5a5816dcfe45ca7647d86214fe3e11 /engines | |
parent | d2d8ab7d18d97c6fc1d3f4d35a25f2c7bcfaa25d (diff) | |
download | scummvm-rg350-30c479a7e460f035d85313a91ae6fc6be4cfe565.tar.gz scummvm-rg350-30c479a7e460f035d85313a91ae6fc6be4cfe565.tar.bz2 scummvm-rg350-30c479a7e460f035d85313a91ae6fc6be4cfe565.zip |
Cleanup
svn-id: r28842
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/loader_preagi.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/engines/agi/loader_preagi.cpp b/engines/agi/loader_preagi.cpp index de8be73c67..e503aeea6c 100644 --- a/engines/agi/loader_preagi.cpp +++ b/engines/agi/loader_preagi.cpp @@ -104,9 +104,6 @@ int AgiLoader_preagi::deinit() { int AgiLoader_preagi::unloadResource(int t, int n) { switch (t) { - case rLOGIC: - //_vm->unloadLogic(n); - break; case rPICTURE: _vm->_picture->unloadPicture(n); break; @@ -140,24 +137,20 @@ uint8 *AgiLoader_preagi::loadVolRes(AgiDir *agid) { int AgiLoader_preagi::loadResource(int t, int n) { int ec = errOK; uint8 *data = NULL; + char szFile[255] = {0}; if (n > MAX_DIRS) return errBadResource; switch (t) { - case rLOGIC: - // The logic in preagi games is hardcoded - break; case rPICTURE: /* if picture is currently NOT loaded *OR* cacheing is off, * unload the resource (caching==off) and reload it */ - if (true) { //(~_vm->_game.dirPic[n].flags & RES_LOADED) { + if (~_vm->_game.dirPic[n].flags & RES_LOADED) { unloadResource(rPICTURE, n); - //data = loadVolRes(&_vm->_game.dirPic[n]); data = new uint8[4096]; - char szFile[255] = {0}; sprintf(szFile, IDS_MSA_PATH_PIC, n); Common::File infile; |