Cleanup evt_handle_call (#706)

This commit is contained in:
Seeky 2022-05-12 00:50:06 +01:00 committed by GitHub
parent 5f2aca559c
commit d641b72336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -879,23 +879,23 @@ ApiStatus evt_handle_call(Evt* script) {
Bytecode* args = script->ptrReadPos;
s32 isInitialCall;
ApiFunc func;
Evt* newScript; // todo fake match
ApiStatus ret;
if (script->blocked) {
isInitialCall = FALSE;
func = script->callFunction;
newScript = script; // todo fake match
ret = func(script, isInitialCall);
} else {
script->callFunction = (ApiFunc)evt_get_variable(script, *args++);
newScript = script; // todo fake match
script->ptrReadPos = args;
script->currentArgc--;
script->blocked = TRUE;
isInitialCall = TRUE;
func = script->callFunction;
ret = func(script, isInitialCall);
}
return func(newScript, isInitialCall); // todo fake match
return ret;
}
ApiStatus evt_handle_exec1(Evt* script) {