diff options
author | Filippos Karapetis | 2009-10-10 00:07:19 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-10-10 00:07:19 +0000 |
commit | 8ae420637338c32b377c6518b4373302d6d8ee77 (patch) | |
tree | e03650cfde37ad62b5e5fb20ff4f085402e85d83 /engines/sci | |
parent | 9bb73a845727a958d4351b7dd36e1ee208b68833 (diff) | |
download | scummvm-rg350-8ae420637338c32b377c6518b4373302d6d8ee77.tar.gz scummvm-rg350-8ae420637338c32b377c6518b4373302d6d8ee77.tar.bz2 scummvm-rg350-8ae420637338c32b377c6518b4373302d6d8ee77.zip |
Introduced a new debug level, kDebugLevelResMan, and reduced some of the messages printed to the console
svn-id: r44858
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/resource.cpp | 14 | ||||
-rw-r--r-- | engines/sci/sci.cpp | 12 | ||||
-rw-r--r-- | engines/sci/sci.h | 3 |
3 files changed, 11 insertions, 18 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index e886d3b887..8b741a1228 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -517,8 +517,8 @@ void ResourceManager::init() { _mapVersion = _volVersion; } - debug("resMan: Detected resource map version %d: %s", _mapVersion, versionDescription(_mapVersion)); - debug("resMan: Detected volume version %d: %s", _volVersion, versionDescription(_volVersion)); + debugC(1, kDebugLevelResMan, "resMan: Detected resource map version %d: %s", _mapVersion, versionDescription(_mapVersion)); + debugC(1, kDebugLevelResMan, "resMan: Detected volume version %d: %s", _volVersion, versionDescription(_volVersion)); scanNewSources(); addInternalSources(); @@ -526,20 +526,20 @@ void ResourceManager::init() { detectSciVersion(); - debug("resMan: Detected %s", getSciVersionDesc(getSciVersion()).c_str()); + debugC(1, kDebugLevelResMan, "resMan: Detected %s", getSciVersionDesc(getSciVersion()).c_str()); switch (_viewType) { case kViewEga: - debug("resMan: Detected EGA graphic resources"); + debugC(1, kDebugLevelResMan, "resMan: Detected EGA graphic resources"); break; case kViewVga: - debug("resMan: Detected VGA graphic resources"); + debugC(1, kDebugLevelResMan, "resMan: Detected VGA graphic resources"); break; case kViewVga11: - debug("resMan: Detected SCI1.1 VGA graphic resources"); + debugC(1, kDebugLevelResMan, "resMan: Detected SCI1.1 VGA graphic resources"); break; case kViewAmiga: - debug("resMan: Detected Amiga graphic resources"); + debugC(1, kDebugLevelResMan, "resMan: Detected Amiga graphic resources"); break; default: warning("resMan: Couldn't determine view type"); diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 41c0719ef5..664cd5243b 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -86,14 +86,9 @@ SciEngine::SciEngine(OSystem *syst, const ADGameDescription *desc) Common::addDebugChannel(kDebugLevelSci0Pic, "Sci0Pic", "SCI0 pic drawing debugging"); _gamestate = 0; - - printf("SciEngine::SciEngine\n"); } SciEngine::~SciEngine() { - // Dispose your resources here - printf("SciEngine::~SciEngine\n"); - // Remove all of our debug levels here Common::clearAllDebugChannels(); @@ -109,9 +104,6 @@ Common::Error SciEngine::run() { // Create debugger console. It requires GFX to be initialized _console = new Console(this); - // Additional setup. - printf("SciEngine::init\n"); - /* bool end = false; Common::EventManager *em = _system->getEventManager(); while (!end) { @@ -129,7 +121,7 @@ Common::Error SciEngine::run() { _resMan = new ResourceManager(); if (!_resMan) { - printf("No resources found, aborting...\n"); + warning("No resources found, aborting"); return Common::kNoGameDataFoundError; } @@ -197,7 +189,7 @@ Common::Error SciEngine::run() { _gamestate->_gui->init(_gamestate->usesOldGfxFunctions()); - printf("Emulating SCI version %s\n", getSciVersionDesc(getSciVersion()).c_str()); + debug("Emulating SCI version %s\n", getSciVersionDesc(getSciVersion()).c_str()); game_run(&_gamestate); // Run the game diff --git a/engines/sci/sci.h b/engines/sci/sci.h index 950833d57b..e0e952a8b2 100644 --- a/engines/sci/sci.h +++ b/engines/sci/sci.h @@ -60,7 +60,8 @@ enum kDebugLevels { kDebugLevelVM = 1 << 18, kDebugLevelScripts = 1 << 19, kDebugLevelGC = 1 << 20, - kDebugLevelSci0Pic = 1 << 21 + kDebugLevelSci0Pic = 1 << 21, + kDebugLevelResMan = 1 << 22 }; extern const char *versionNames[]; |