ZVISION: Implement action:preferences
This commit is contained in:
parent
44eeb40272
commit
19e2251a75
3 changed files with 31 additions and 1 deletions
|
@ -473,6 +473,27 @@ bool ActionPanTrack::execute() {
|
|||
return true;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// ActionPreferences
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ActionPreferences::ActionPreferences(ZVision *engine, int32 slotkey, const Common::String &line) :
|
||||
ResultAction(engine, slotkey) {
|
||||
if (line.compareToIgnoreCase("save") == 0)
|
||||
_save = true;
|
||||
else
|
||||
_save = false;
|
||||
}
|
||||
|
||||
bool ActionPreferences::execute() {
|
||||
if (_save)
|
||||
_engine->saveSettings();
|
||||
else
|
||||
_engine->loadSettings();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// ActionPreloadAnimation
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue