HOPKINS: Remove an unused Catalog mode

This commit is contained in:
Strangerke 2013-03-24 15:36:32 +01:00
parent 1952a47787
commit 75b5753b61
3 changed files with 4 additions and 13 deletions

View File

@ -64,7 +64,7 @@ EventsManager::~EventsManager() {
}
void EventsManager::clearAll() {
_objectBuf = _vm->_globals->freeMemory(_objectBuf);
_vm->_globals->freeMemory(_objectBuf);
_objectBuf = _vm->_globals->allocMemory(2500);
}

View File

@ -126,14 +126,6 @@ byte *FileManager::searchCat(const Common::String &file, CatMode mode) {
secondaryFilename = "RES_LIN.RES";
break;
case RES_ANI:
if (!f.exists("RES_ANI.CAT"))
return g_PTRNUL;
ptr = loadFile("RES_ANI.CAT");
secondaryFilename = "RES_ANI.RES";
break;
case RES_PER:
if (!f.exists("RES_PER.CAT"))
return g_PTRNUL;

View File

@ -32,10 +32,9 @@ namespace Hopkins {
class HopkinsEngine;
// CHECKME: RES_ANI looks unused
enum CatMode { RES_INI = 1, RES_REP = 2, RES_LIN = 3, RES_ANI = 4,
RES_PER = 5, RES_PIC = 6, RES_SAN = 7, RES_SLI = 8,
RES_VOI = 9 };
// RES_ANI = 4 has been removed because it's not used
enum CatMode { RES_INI = 1, RES_REP = 2, RES_LIN = 3, RES_PER = 5,
RES_PIC = 6, RES_SAN = 7, RES_SLI = 8, RES_VOI = 9 };
class FileManager {
public: