aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/console.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-03-28 15:31:14 -0400
committerMatthew Hoops2011-03-28 22:26:23 -0400
commit4a7572d893fd50c25ff7576bdb7064bc3a85711d (patch)
treed8efc9149a304dcab9ebb656ff965f1265401681 /engines/mohawk/console.cpp
parente5811cd6c39333cf7a51eb4943bf4ead0aff681c (diff)
downloadscummvm-rg350-4a7572d893fd50c25ff7576bdb7064bc3a85711d.tar.gz
scummvm-rg350-4a7572d893fd50c25ff7576bdb7064bc3a85711d.tar.bz2
scummvm-rg350-4a7572d893fd50c25ff7576bdb7064bc3a85711d.zip
MOHAWK: Allow disabling compiling cstime
Diffstat (limited to 'engines/mohawk/console.cpp')
-rw-r--r--engines/mohawk/console.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/mohawk/console.cpp b/engines/mohawk/console.cpp
index e94ab7e092..445901d800 100644
--- a/engines/mohawk/console.cpp
+++ b/engines/mohawk/console.cpp
@@ -28,10 +28,13 @@
#include "mohawk/riven.h"
#include "mohawk/riven_external.h"
#include "mohawk/livingbooks.h"
-#include "mohawk/cstime.h"
#include "mohawk/sound.h"
#include "mohawk/video.h"
+#ifdef ENABLE_CSTIME
+#include "mohawk/cstime.h"
+#endif
+
#ifdef ENABLE_MYST
#include "mohawk/myst.h"
#include "mohawk/myst_areas.h"
@@ -701,6 +704,8 @@ bool LivingBooksConsole::Cmd_ChangePage(int argc, const char **argv) {
return true;
}
+#ifdef ENABLE_CSTIME
+
CSTimeConsole::CSTimeConsole(MohawkEngine_CSTime *vm) : GUI::Debugger(), _vm(vm) {
DCmd_Register("playSound", WRAP_METHOD(CSTimeConsole, Cmd_PlaySound));
DCmd_Register("stopSound", WRAP_METHOD(CSTimeConsole, Cmd_StopSound));
@@ -803,4 +808,6 @@ bool CSTimeConsole::Cmd_InvItem(int argc, const char **argv) {
return false;
}
+#endif // ENABLE_CSTIME
+
} // End of namespace Mohawk