runescape-client: fix the thing
This commit is contained in:
@@ -27,12 +27,12 @@ public class VarpDefinition extends DualNode {
|
||||
public int type;
|
||||
|
||||
static {
|
||||
VarpDefinition_cached = new EvictingDualNodeHashTable(64);
|
||||
VarpDefinition_cached = new EvictingDualNodeHashTable(64); // L: 12
|
||||
}
|
||||
|
||||
VarpDefinition() {
|
||||
this.type = 0;
|
||||
}
|
||||
this.type = 0; // L: 13
|
||||
} // L: 15
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
@@ -42,12 +42,12 @@ public class VarpDefinition extends DualNode {
|
||||
@Export("decode")
|
||||
void decode(Buffer var1) {
|
||||
while (true) {
|
||||
int var2 = var1.readUnsignedByte();
|
||||
if (var2 == 0) {
|
||||
return;
|
||||
int var2 = var1.readUnsignedByte(); // L: 29
|
||||
if (var2 == 0) { // L: 30
|
||||
return; // L: 33
|
||||
}
|
||||
|
||||
this.decodeNext(var1, var2);
|
||||
this.decodeNext(var1, var2); // L: 31
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,11 +58,11 @@ public class VarpDefinition extends DualNode {
|
||||
)
|
||||
@Export("decodeNext")
|
||||
void decodeNext(Buffer var1, int var2) {
|
||||
if (var2 == 5) {
|
||||
if (var2 == 5) { // L: 36
|
||||
this.type = var1.readUnsignedShort();
|
||||
}
|
||||
|
||||
}
|
||||
} // L: 38
|
||||
|
||||
@ObfuscatedName("ad")
|
||||
@ObfuscatedSignature(
|
||||
@@ -71,21 +71,21 @@ public class VarpDefinition extends DualNode {
|
||||
)
|
||||
@Export("runWidgetOnLoadListener")
|
||||
static void runWidgetOnLoadListener(int var0) {
|
||||
if (var0 != -1) {
|
||||
if (class41.loadInterface(var0)) {
|
||||
Widget[] var1 = class9.Widget_interfaceComponents[var0];
|
||||
if (var0 != -1) { // L: 3902
|
||||
if (class41.loadInterface(var0)) { // L: 3903
|
||||
Widget[] var1 = class9.Widget_interfaceComponents[var0]; // L: 3904
|
||||
|
||||
for (int var2 = 0; var2 < var1.length; ++var2) {
|
||||
Widget var3 = var1[var2];
|
||||
if (var3.onLoad != null) {
|
||||
ScriptEvent var4 = new ScriptEvent();
|
||||
var4.widget = var3;
|
||||
var4.args = var3.onLoad;
|
||||
AttackOption.runScript(var4, 5000000);
|
||||
for (int var2 = 0; var2 < var1.length; ++var2) { // L: 3905
|
||||
Widget var3 = var1[var2]; // L: 3906
|
||||
if (var3.onLoad != null) { // L: 3907
|
||||
ScriptEvent var4 = new ScriptEvent(); // L: 3908
|
||||
var4.widget = var3; // L: 3909
|
||||
var4.args = var3.onLoad; // L: 3910
|
||||
AttackOption.runScript(var4, 5000000); // L: 3911
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
} // L: 3914
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user