mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-07 02:39:56 +00:00
HOPKINS: Start refactoring handleOpcode
This commit is contained in:
parent
74e3e45732
commit
1c5a6f8c74
@ -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;
|
||||
|
||||
|
@ -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
@ -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);
|
||||
};
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user