rs-client: Cleanup (#1087)
* rs-client: name SpriteBuffer * rs-client: (re)name spritebuffer methods * rs-client/deob: Add missed @Export's, make updatemappings fix this next time * rs-client: run intellij redundant else inspection * rs-client: invert some script interpreter if's * deob: checkstyle fixes * rs-client: SpriteBuffer_loadSprite -> SpriteBuffer_bufferFile
This commit is contained in:
@@ -74,19 +74,8 @@ public enum StudioGame implements Enumerated {
|
||||
if (var0 == ScriptOpcodes.CC_GETTARGETMASK) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = HealthBar.method1957(class268.getWidgetClickMask(var3));
|
||||
return 1;
|
||||
} else if (var0 != ScriptOpcodes.CC_GETOP) {
|
||||
if (var0 == ScriptOpcodes.CC_GETOPBASE) {
|
||||
if (var3.dataText == null) {
|
||||
Interpreter.Interpreter_stringStack[++Skills.Interpreter_stringStackSize - 1] = "";
|
||||
} else {
|
||||
Interpreter.Interpreter_stringStack[++Skills.Interpreter_stringStackSize - 1] = var3.dataText;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
if (var0 == ScriptOpcodes.CC_GETOP) {
|
||||
int var4 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
--var4;
|
||||
if (var3.actions != null && var4 < var3.actions.length && var3.actions[var4] != null) {
|
||||
@@ -97,5 +86,16 @@ public enum StudioGame implements Enumerated {
|
||||
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.CC_GETOPBASE) {
|
||||
if (var3.dataText == null) {
|
||||
Interpreter.Interpreter_stringStack[++Skills.Interpreter_stringStackSize - 1] = "";
|
||||
} else {
|
||||
Interpreter.Interpreter_stringStack[++Skills.Interpreter_stringStackSize - 1] = var3.dataText;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user