From ce619b254ed2ff70c43e20006fc755b3c5eb785d Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 11 Nov 2003 15:07:35 +0000 Subject: Extended the "res" debugger command to print information about where the game expects to find the various cluster files. I plan to look into making the game playable from CD, and this should help during the testing. svn-id: r11262 --- sword2/resman.cpp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'sword2/resman.cpp') diff --git a/sword2/resman.cpp b/sword2/resman.cpp index 5c0c63e055..62eac3c7fd 100644 --- a/sword2/resman.cpp +++ b/sword2/resman.cpp @@ -731,8 +731,23 @@ uint32 ResourceManager::helpTheAgedOut(void) { void ResourceManager::printConsoleClusters(void) { if (_totalClusters) { - for (uint i = 0; i < _totalClusters; i++) - Debug_Printf("%s\n", _resourceFiles[i]); + for (uint i = 0; i < _totalClusters; i++) { + Debug_Printf("%-20s ", _resourceFiles[i]); + if (!(_cdTab[i] & LOCAL_PERM)) { + switch (_cdTab[i] & 3) { + case BOTH: + Debug_Printf("CD 1 & 2\n"); + break; + case CD1: + Debug_Printf("CD 1\n"); + break; + case CD2: + Debug_Printf("CD 2\n"); + break; + } + } else + Debug_Printf("HD\n"); + } Debug_Printf("%d resources\n", _totalResFiles); } else Debug_Printf("Argh! No resources!\n"); @@ -982,7 +997,7 @@ void ResourceManager::cacheNewCluster(uint32 newCluster) { g_logic->fnStopMusic(NULL); - _vm->clearFxQueue(); // stops all fx & clears the queue (James22july97) + _vm->clearFxQueue(); // stops all fx & clears the queue getCd(_cdTab[newCluster] & 3); // Kick out old cached cluster and load the new one. -- cgit v1.2.3