MOHAWK: Remove Myst's var store from the build since it is not used
anymore. Keep the files are to be kept around for reference until Mechanical is finished.
This commit is contained in:
parent
e5783d9c27
commit
3cc86aedac
4 changed files with 1 additions and 10 deletions
|
@ -18,7 +18,6 @@ MODULE_OBJS = \
|
||||||
mohawk.o \
|
mohawk.o \
|
||||||
myst.o \
|
myst.o \
|
||||||
myst_areas.o \
|
myst_areas.o \
|
||||||
myst_vars.o \
|
|
||||||
myst_scripts.o \
|
myst_scripts.o \
|
||||||
myst_state.o \
|
myst_state.o \
|
||||||
resource.o \
|
resource.o \
|
||||||
|
|
|
@ -83,7 +83,6 @@ MohawkEngine_Myst::MohawkEngine_Myst(OSystem *syst, const MohawkGameDescription
|
||||||
_gfx = NULL;
|
_gfx = NULL;
|
||||||
_console = NULL;
|
_console = NULL;
|
||||||
_scriptParser = NULL;
|
_scriptParser = NULL;
|
||||||
_varStore = NULL;
|
|
||||||
_gameState = NULL;
|
_gameState = NULL;
|
||||||
_loadDialog = NULL;
|
_loadDialog = NULL;
|
||||||
_optionsDialog = NULL;
|
_optionsDialog = NULL;
|
||||||
|
@ -112,7 +111,6 @@ MohawkEngine_Myst::~MohawkEngine_Myst() {
|
||||||
delete _gfx;
|
delete _gfx;
|
||||||
delete _console;
|
delete _console;
|
||||||
delete _scriptParser;
|
delete _scriptParser;
|
||||||
delete _varStore;
|
|
||||||
delete _gameState;
|
delete _gameState;
|
||||||
delete _loadDialog;
|
delete _loadDialog;
|
||||||
delete _optionsDialog;
|
delete _optionsDialog;
|
||||||
|
@ -253,7 +251,6 @@ Common::Error MohawkEngine_Myst::run() {
|
||||||
|
|
||||||
_gfx = new MystGraphics(this);
|
_gfx = new MystGraphics(this);
|
||||||
_console = new MystConsole(this);
|
_console = new MystConsole(this);
|
||||||
_varStore = new MystVar(this);
|
|
||||||
_gameState = new MystGameState(this, _saveFileMan);
|
_gameState = new MystGameState(this, _saveFileMan);
|
||||||
_loadDialog = new GUI::SaveLoadChooser(_("Load game:"), _("Load"));
|
_loadDialog = new GUI::SaveLoadChooser(_("Load game:"), _("Load"));
|
||||||
_loadDialog->setSaveMode(false);
|
_loadDialog->setSaveMode(false);
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
#include "mohawk/console.h"
|
#include "mohawk/console.h"
|
||||||
#include "mohawk/mohawk.h"
|
#include "mohawk/mohawk.h"
|
||||||
#include "mohawk/resource_cache.h"
|
#include "mohawk/resource_cache.h"
|
||||||
#include "mohawk/myst_vars.h"
|
|
||||||
#include "mohawk/myst_scripts.h"
|
#include "mohawk/myst_scripts.h"
|
||||||
|
|
||||||
#include "common/random.h"
|
#include "common/random.h"
|
||||||
|
@ -169,8 +168,6 @@ public:
|
||||||
MystResource *updateCurrentResource();
|
MystResource *updateCurrentResource();
|
||||||
bool skippableWait(uint32 duration);
|
bool skippableWait(uint32 duration);
|
||||||
|
|
||||||
MystVar *_varStore;
|
|
||||||
|
|
||||||
bool _tweaksEnabled;
|
bool _tweaksEnabled;
|
||||||
bool _needsUpdate;
|
bool _needsUpdate;
|
||||||
|
|
||||||
|
|
|
@ -233,13 +233,12 @@ uint16 MystScriptParser::getVar(uint16 var) {
|
||||||
return _globals.ending;
|
return _globals.ending;
|
||||||
default:
|
default:
|
||||||
warning("Unimplemented var getter 0x%02x (%d)", var, var);
|
warning("Unimplemented var getter 0x%02x (%d)", var, var);
|
||||||
return _vm->_varStore->getVar(var);
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MystScriptParser::toggleVar(uint16 var) {
|
void MystScriptParser::toggleVar(uint16 var) {
|
||||||
warning("Unimplemented var toggle 0x%02x (%d)", var, var);
|
warning("Unimplemented var toggle 0x%02x (%d)", var, var);
|
||||||
_vm->_varStore->setVar(var, (_vm->_varStore->getVar(var) + 1) % 2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MystScriptParser::setVarValue(uint16 var, uint16 value) {
|
bool MystScriptParser::setVarValue(uint16 var, uint16 value) {
|
||||||
|
@ -248,7 +247,6 @@ bool MystScriptParser::setVarValue(uint16 var, uint16 value) {
|
||||||
_tempVar = value;
|
_tempVar = value;
|
||||||
} else {
|
} else {
|
||||||
warning("Unimplemented var setter 0x%02x (%d)", var, var);
|
warning("Unimplemented var setter 0x%02x (%d)", var, var);
|
||||||
_vm->_varStore->setVar(var, value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue