From 34f570419ad49550c6a7790e2a97a7d88d02fbac Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sun, 5 Sep 2010 00:48:38 +0000 Subject: MOHAWK: Cleanup - Split the main Riven event loop into a separate function for readability and for use in the sunner external functions eventually - Some minor function signature changes (const!) - Rename matchVarToString() to getVar() (I have no idea where that original name came from, considering it takes a string and returns a variable - Use solely Common::String in getVar() svn-id: r52538 --- engines/mohawk/dialogs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/mohawk/dialogs.cpp') diff --git a/engines/mohawk/dialogs.cpp b/engines/mohawk/dialogs.cpp index c09763cbb3..a7369b4825 100644 --- a/engines/mohawk/dialogs.cpp +++ b/engines/mohawk/dialogs.cpp @@ -125,17 +125,17 @@ RivenOptionsDialog::~RivenOptionsDialog() { void RivenOptionsDialog::open() { Dialog::open(); - _zipModeCheckbox->setState(*_vm->matchVarToString("azip") != 0); - _waterEffectCheckbox->setState(*_vm->matchVarToString("waterenabled") != 0); + _zipModeCheckbox->setState(*_vm->getVar("azip") != 0); + _waterEffectCheckbox->setState(*_vm->getVar("waterenabled") != 0); } void RivenOptionsDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) { switch (cmd) { case kZipCmd: - *_vm->matchVarToString("azip") = _zipModeCheckbox->getState() ? 1 : 0; + *_vm->getVar("azip") = _zipModeCheckbox->getState() ? 1 : 0; break; case kWaterCmd: - *_vm->matchVarToString("waterenabled") = _waterEffectCheckbox->getState() ? 1 : 0; + *_vm->getVar("waterenabled") = _waterEffectCheckbox->getState() ? 1 : 0; break; case GUI::kCloseCmd: close(); -- cgit v1.2.3