HOPKINS: Start refactoring handleOpcode

This commit is contained in:
Strangerke 2012-12-24 18:24:08 +01:00
parent 74e3e45732
commit 1c5a6f8c74
5 changed files with 1063 additions and 913 deletions

View File

@ -1966,7 +1966,7 @@ void GraphicsManager::OPTI_INI(const Common::String &file, int mode) {
int dataOffset = 1;
do {
int dataVal1 = _vm->_scriptManager.Traduction(ptr + 20 * dataOffset);
int dataVal1 = _vm->_scriptManager.handleOpcode(ptr + 20 * dataOffset);
if (_vm->shouldQuit())
return;

View File

@ -3967,7 +3967,7 @@ void ObjectsManager::OPTI_OBJET() {
} else {
v7 = 0;
do {
v5 = _vm->_scriptManager.Traduction(data + 20 * v0);
v5 = _vm->_scriptManager.handleOpcode(data + 20 * v0);
if (_vm->shouldQuit())
return;

File diff suppressed because it is too large Load Diff

View File

@ -39,8 +39,8 @@ public:
ScriptManager();
void setParent(HopkinsEngine *vm);
int Traduction(byte *a1);
int checkSignature(const byte *dataP);
int handleOpcode(byte *dataP);
int checkOpcode(const byte *dataP);
int handleGoto(const byte *dataP);
int handleIf(const byte *dataP, int a2);
};

View File

@ -1004,7 +1004,7 @@ LABEL_2:
loopCond = false;
v13 = 1;
do {
v10 = _vm->_scriptManager.Traduction(ptr + 20 * v13);
v10 = _vm->_scriptManager.handleOpcode(ptr + 20 * v13);
if (_vm->shouldQuit())
return;