aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-11-11 15:07:35 +0000
committerTorbjörn Andersson2003-11-11 15:07:35 +0000
commitce619b254ed2ff70c43e20006fc755b3c5eb785d (patch)
tree67c502843e2d58f06b0e1fbd52255d87ce473446 /sword2
parent5d863586dc1a431dd3d5ec86096140297886bf4d (diff)
downloadscummvm-rg350-ce619b254ed2ff70c43e20006fc755b3c5eb785d.tar.gz
scummvm-rg350-ce619b254ed2ff70c43e20006fc755b3c5eb785d.tar.bz2
scummvm-rg350-ce619b254ed2ff70c43e20006fc755b3c5eb785d.zip
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
Diffstat (limited to 'sword2')
-rw-r--r--sword2/resman.cpp21
1 files changed, 18 insertions, 3 deletions
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.