aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie
diff options
context:
space:
mode:
authorMax Horn2009-01-30 05:10:24 +0000
committerMax Horn2009-01-30 05:10:24 +0000
commit7cb437b56f95bff06b0c79be93cd619b95662346 (patch)
tree6c466852a68c135a92ed7abb816c358b0042c57c /engines/groovie
parent7b50c293e6c509142e204e1aa11d51204cda9073 (diff)
downloadscummvm-rg350-7cb437b56f95bff06b0c79be93cd619b95662346.tar.gz
scummvm-rg350-7cb437b56f95bff06b0c79be93cd619b95662346.tar.bz2
scummvm-rg350-7cb437b56f95bff06b0c79be93cd619b95662346.zip
Renamed SpecialDebugLevel to DebugChannel
svn-id: r36142
Diffstat (limited to 'engines/groovie')
-rw-r--r--engines/groovie/debug.cpp2
-rw-r--r--engines/groovie/groovie.cpp22
-rw-r--r--engines/groovie/script.cpp8
-rw-r--r--engines/groovie/vdx.cpp8
4 files changed, 20 insertions, 20 deletions
diff --git a/engines/groovie/debug.cpp b/engines/groovie/debug.cpp
index fa5bef9944..72a07f4f42 100644
--- a/engines/groovie/debug.cpp
+++ b/engines/groovie/debug.cpp
@@ -46,7 +46,7 @@ Debugger::Debugger(GroovieEngine *vm) :
}
Debugger::~Debugger() {
- Common::clearAllSpecialDebugLevels();
+ Common::clearAllDebugChannels();
}
int Debugger::getNumber(const char *arg) {
diff --git a/engines/groovie/groovie.cpp b/engines/groovie/groovie.cpp
index a09fe8fe3b..d0b42506b8 100644
--- a/engines/groovie/groovie.cpp
+++ b/engines/groovie/groovie.cpp
@@ -45,17 +45,17 @@ GroovieEngine::GroovieEngine(OSystem *syst, GroovieGameDescription *gd) :
Common::File::addDefaultDirectory(_gameDataDir.getChild("system"));
// Initialize the custom debug levels
- Common::addSpecialDebugLevel(kGroovieDebugAll, "All", "Debug everything");
- Common::addSpecialDebugLevel(kGroovieDebugVideo, "Video", "Debug video and audio playback");
- Common::addSpecialDebugLevel(kGroovieDebugResource, "Resource", "Debug resouce management");
- Common::addSpecialDebugLevel(kGroovieDebugScript, "Script", "Debug the scripts");
- Common::addSpecialDebugLevel(kGroovieDebugUnknown, "Unknown", "Report values of unknown data in files");
- Common::addSpecialDebugLevel(kGroovieDebugHotspots, "Hotspots", "Show the hotspots");
- Common::addSpecialDebugLevel(kGroovieDebugCursor, "Cursor", "Debug cursor decompression / switching");
- Common::addSpecialDebugLevel(kGroovieDebugMIDI, "MIDI", "Debug MIDI / XMIDI files");
- Common::addSpecialDebugLevel(kGroovieDebugScriptvars, "Scriptvars", "Print out any change to script variables");
- Common::addSpecialDebugLevel(kGroovieDebugCell, "Cell", "Debug the cell game (in the microscope)");
- Common::addSpecialDebugLevel(kGroovieDebugFast, "Fast", "Play videos quickly, with no sound (unstable)");
+ Common::addDebugChannel(kGroovieDebugAll, "All", "Debug everything");
+ Common::addDebugChannel(kGroovieDebugVideo, "Video", "Debug video and audio playback");
+ Common::addDebugChannel(kGroovieDebugResource, "Resource", "Debug resouce management");
+ Common::addDebugChannel(kGroovieDebugScript, "Script", "Debug the scripts");
+ Common::addDebugChannel(kGroovieDebugUnknown, "Unknown", "Report values of unknown data in files");
+ Common::addDebugChannel(kGroovieDebugHotspots, "Hotspots", "Show the hotspots");
+ Common::addDebugChannel(kGroovieDebugCursor, "Cursor", "Debug cursor decompression / switching");
+ Common::addDebugChannel(kGroovieDebugMIDI, "MIDI", "Debug MIDI / XMIDI files");
+ Common::addDebugChannel(kGroovieDebugScriptvars, "Scriptvars", "Print out any change to script variables");
+ Common::addDebugChannel(kGroovieDebugCell, "Cell", "Debug the cell game (in the microscope)");
+ Common::addDebugChannel(kGroovieDebugFast, "Fast", "Play videos quickly, with no sound (unstable)");
}
GroovieEngine::~GroovieEngine() {
diff --git a/engines/groovie/script.cpp b/engines/groovie/script.cpp
index 4909bb46bc..14dfcf5c9d 100644
--- a/engines/groovie/script.cpp
+++ b/engines/groovie/script.cpp
@@ -42,8 +42,8 @@ void debugScript(int level, bool nl, const char *s, ...) {
char buf[STRINGBUFLEN];
va_list va;
- if (!Common::isSpecialDebugLevelEnabled(kGroovieDebugScript) &&
- !Common::isSpecialDebugLevelEnabled(kGroovieDebugAll))
+ if (!Common::isDebugChannelEnabled(kGroovieDebugScript) &&
+ !Common::isDebugChannelEnabled(kGroovieDebugAll))
return;
va_start(va, s);
@@ -330,8 +330,8 @@ bool Script::hotspot(Common::Rect rect, uint16 address, uint8 cursor) {
bool contained = rect.contains(mousepos);
// Show hotspots when debugging
- if (Common::isSpecialDebugLevelEnabled(kGroovieDebugHotspots) ||
- Common::isSpecialDebugLevelEnabled(kGroovieDebugAll)) {
+ if (Common::isDebugChannelEnabled(kGroovieDebugHotspots) ||
+ Common::isDebugChannelEnabled(kGroovieDebugAll)) {
rect.translate(0, -80);
_vm->_graphicsMan->_foreground.frameRect(rect, 250);
_vm->_system->copyRectToScreen((byte*)_vm->_graphicsMan->_foreground.getBasePtr(0, 0), 640, 0, 80, 640, 320);
diff --git a/engines/groovie/vdx.cpp b/engines/groovie/vdx.cpp
index 2e5cb2dbe9..46bd5f3472 100644
--- a/engines/groovie/vdx.cpp
+++ b/engines/groovie/vdx.cpp
@@ -49,8 +49,8 @@ void VDXPlayer::setOrigin(int16 x, int16 y) {
}
uint16 VDXPlayer::loadInternal() {
- if (Common::isSpecialDebugLevelEnabled(kGroovieDebugVideo) ||
- Common::isSpecialDebugLevelEnabled(kGroovieDebugAll)) {
+ if (Common::isDebugChannelEnabled(kGroovieDebugVideo) ||
+ Common::isDebugChannelEnabled(kGroovieDebugAll)) {
int8 i;
debugN(1, "Groovie::VDX: New VDX: bitflags are ");
for (i = 15; i >= 0; i--) {
@@ -162,7 +162,7 @@ bool VDXPlayer::playFrameInternal() {
// Wait until the current frame can be shown
- if (!Common::isSpecialDebugLevelEnabled(kGroovieDebugFast)) {
+ if (!Common::isDebugChannelEnabled(kGroovieDebugFast)) {
waitFrame();
}
// TODO: Move it to a better place
@@ -493,7 +493,7 @@ void VDXPlayer::chunkSound(Common::ReadStream *in) {
byte *data = new byte[60000];
int chunksize = in->read(data, 60000);
- if (!Common::isSpecialDebugLevelEnabled(kGroovieDebugFast)) {
+ if (!Common::isDebugChannelEnabled(kGroovieDebugFast)) {
_audioStream->queueBuffer(data, chunksize);
}
}