From 4b19c1bf32cd8ae62afa5937b0f4ffaff6154f09 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 28 Mar 2011 23:41:32 -0400 Subject: MOHAWK: Don't compile RivenOptionsDialog when Riven isn't enabled --- engines/mohawk/dialogs.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines/mohawk/dialogs.cpp') diff --git a/engines/mohawk/dialogs.cpp b/engines/mohawk/dialogs.cpp index 3fe64350b4..c5a0c7e86d 100644 --- a/engines/mohawk/dialogs.cpp +++ b/engines/mohawk/dialogs.cpp @@ -24,7 +24,6 @@ */ #include "mohawk/mohawk.h" -#include "mohawk/riven.h" #include "mohawk/dialogs.h" #include "gui/gui-manager.h" @@ -35,6 +34,10 @@ #include "mohawk/myst.h" #endif +#ifdef ENABLE_RIVEN +#include "mohawk/riven.h" +#endif + namespace Mohawk { // This used to have GUI::Dialog("MohawkDummyDialog"), but that doesn't work with the gui branch merge :P (Sorry, Tanoku!) @@ -118,6 +121,8 @@ void MystOptionsDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, ui #endif +#ifdef ENABLE_RIVEN + RivenOptionsDialog::RivenOptionsDialog(MohawkEngine_Riven* vm) : GUI::OptionsDialog("", 120, 120, 360, 200), _vm(vm) { _zipModeCheckbox = new GUI::CheckboxWidget(this, 15, 10, 300, 15, _("~Z~ip Mode Activated"), 0, kZipCmd); _waterEffectCheckbox = new GUI::CheckboxWidget(this, 15, 30, 300, 15, _("~W~ater Effect Enabled"), 0, kWaterCmd); @@ -152,4 +157,6 @@ void RivenOptionsDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, u } } +#endif + } // End of namespace Mohawk -- cgit v1.2.3