aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/staticres.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2006-02-14 01:19:30 +0000
committerJohannes Schickel2006-02-14 01:19:30 +0000
commit93e9639989690d0fae19c44df4f29624f74465d0 (patch)
tree429ce9e7d06ddaeebf7504b0689540e7f5632e0c /engines/kyra/staticres.cpp
parentd91b49c15c187cd2cf67492fd31afc16d40eebca (diff)
downloadscummvm-rg350-93e9639989690d0fae19c44df4f29624f74465d0.tar.gz
scummvm-rg350-93e9639989690d0fae19c44df4f29624f74465d0.tar.bz2
scummvm-rg350-93e9639989690d0fae19c44df4f29624f74465d0.zip
Reworked kyra debug output system. Now he have special kyra intern debug levels + the global debug levels, for now I enable all kyra debug levels if the global debug level is not -1. see 'toggle_debug' in the kyra debugger and kyra.h for the different levels. (This is just the beginning of it anyway, for example the sound debug level isn't used for now)
svn-id: r20678
Diffstat (limited to 'engines/kyra/staticres.cpp')
-rw-r--r--engines/kyra/staticres.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp
index 66e10358c3..f7a26ce8af 100644
--- a/engines/kyra/staticres.cpp
+++ b/engines/kyra/staticres.cpp
@@ -54,7 +54,7 @@ static LanguageTypes languages[] = {
};
void KyraEngine::res_loadResources(int type) {
- debug(9, "res_loadResources(%d)", type);
+ debug(9, kDebugLevelMain, "KyraEngine::res_loadResources(%d)", type);
PAKFile resFile("KYRA.DAT");
if (!resFile.isValid() || !resFile.isOpen()) {
error("couldn't open Kyrandia resource file ('KYRA.DAT') make sure you got one file for your version");
@@ -257,7 +257,7 @@ void KyraEngine::res_loadResources(int type) {
}
void KyraEngine::res_unloadResources(int type) {
- debug(9, "res_unloadResources(%d)", type);
+ debug(9, kDebugLevelMain, "KyraEngine::res_unloadResources(%d)", type);
if ((type & RES_INTRO) || (type & RES_OUTRO) || type & RES_ALL) {
res_freeLangTable(&_seq_WSATable, &_seq_WSATable_Size);
res_freeLangTable(&_seq_CPSTable, &_seq_CPSTable_Size);