diff options
author | Eugene Sandulenko | 2016-07-28 11:38:05 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-07-28 11:38:05 +0300 |
commit | fa071211554663e34b6ecc995d8123aae5d1fdf5 (patch) | |
tree | 318a32f81d33ba5cd8ff562d67ae0a4ba85a5a1d | |
parent | cf89cc04cc213ff38b83c34f64797d9d6c0e8d4f (diff) | |
download | scummvm-rg350-fa071211554663e34b6ecc995d8123aae5d1fdf5.tar.gz scummvm-rg350-fa071211554663e34b6ecc995d8123aae5d1fdf5.tar.bz2 scummvm-rg350-fa071211554663e34b6ecc995d8123aae5d1fdf5.zip |
GROOVIE: Move debug channel registration to the top of the engine constructor
-rw-r--r-- | engines/groovie/groovie.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/groovie/groovie.cpp b/engines/groovie/groovie.cpp index ac77ec3099..2ba4ed18ab 100644 --- a/engines/groovie/groovie.cpp +++ b/engines/groovie/groovie.cpp @@ -53,17 +53,6 @@ GroovieEngine::GroovieEngine(OSystem *syst, const GroovieGameDescription *gd) : _graphicsMan(NULL), _macResFork(NULL), _waitingForInput(false), _font(NULL), _spookyMode(false) { - // Adding the default directories - const Common::FSNode gameDataDir(ConfMan.get("path")); - SearchMan.addSubDirectoryMatching(gameDataDir, "groovie"); - SearchMan.addSubDirectoryMatching(gameDataDir, "media"); - SearchMan.addSubDirectoryMatching(gameDataDir, "system"); - SearchMan.addSubDirectoryMatching(gameDataDir, "MIDI"); - - _modeSpeed = kGroovieSpeedNormal; - if (ConfMan.hasKey("fast_movie_speed") && ConfMan.getBool("fast_movie_speed")) - _modeSpeed = kGroovieSpeedFast; - // Initialize the custom debug levels DebugMan.addDebugChannel(kDebugVideo, "Video", "Debug video and audio playback"); DebugMan.addDebugChannel(kDebugResource, "Resource", "Debug resource management"); @@ -75,6 +64,17 @@ GroovieEngine::GroovieEngine(OSystem *syst, const GroovieGameDescription *gd) : DebugMan.addDebugChannel(kDebugScriptvars, "Scriptvars", "Print out any change to script variables"); DebugMan.addDebugChannel(kDebugCell, "Cell", "Debug the cell game (in the microscope)"); DebugMan.addDebugChannel(kDebugFast, "Fast", "Play videos quickly, with no sound (unstable)"); + + // Adding the default directories + const Common::FSNode gameDataDir(ConfMan.get("path")); + SearchMan.addSubDirectoryMatching(gameDataDir, "groovie"); + SearchMan.addSubDirectoryMatching(gameDataDir, "media"); + SearchMan.addSubDirectoryMatching(gameDataDir, "system"); + SearchMan.addSubDirectoryMatching(gameDataDir, "MIDI"); + + _modeSpeed = kGroovieSpeedNormal; + if (ConfMan.hasKey("fast_movie_speed") && ConfMan.getBool("fast_movie_speed")) + _modeSpeed = kGroovieSpeedFast; } GroovieEngine::~GroovieEngine() { |