project: rev 200
This commit is contained in:
@@ -1,53 +1,63 @@
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("fg")
|
||||
@ObfuscatedName("fb")
|
||||
@Implements("EnumComposition")
|
||||
public class EnumComposition extends DualNode {
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lkk;"
|
||||
descriptor = "Lkl;"
|
||||
)
|
||||
@Export("EnumDefinition_archive")
|
||||
static AbstractArchive EnumDefinition_archive;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lim;"
|
||||
descriptor = "Lii;"
|
||||
)
|
||||
@Export("EnumDefinition_cached")
|
||||
static EvictingDualNodeHashTable EnumDefinition_cached;
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("bl")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "[Loz;"
|
||||
)
|
||||
@Export("worldSelectArrows")
|
||||
static IndexedSprite[] worldSelectArrows;
|
||||
@ObfuscatedName("fs")
|
||||
@Export("worldHost")
|
||||
static String worldHost;
|
||||
@ObfuscatedName("f")
|
||||
@Export("inputType")
|
||||
public char inputType;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("j")
|
||||
@Export("outputType")
|
||||
public char outputType;
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("m")
|
||||
@Export("defaultStr")
|
||||
public String defaultStr;
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1569829239
|
||||
intValue = 803208305
|
||||
)
|
||||
@Export("defaultInt")
|
||||
public int defaultInt;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1117713649
|
||||
intValue = -707506917
|
||||
)
|
||||
@Export("outputCount")
|
||||
public int outputCount;
|
||||
@ObfuscatedName("a")
|
||||
@Export("keys")
|
||||
public int[] keys;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("e")
|
||||
@Export("intVals")
|
||||
public int[] intVals;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("i")
|
||||
@Export("strVals")
|
||||
public String[] strVals;
|
||||
|
||||
@@ -60,10 +70,10 @@ public class EnumComposition extends DualNode {
|
||||
this.outputCount = 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lot;I)V",
|
||||
garbageValue = "1678468441"
|
||||
garbageValue = "-247598772"
|
||||
)
|
||||
@Export("decode")
|
||||
void decode(Buffer var1) {
|
||||
@@ -77,10 +87,10 @@ public class EnumComposition extends DualNode {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lot;IB)V",
|
||||
garbageValue = "3"
|
||||
descriptor = "(Lot;II)V",
|
||||
garbageValue = "-674446563"
|
||||
)
|
||||
@Export("decodeNext")
|
||||
void decodeNext(Buffer var1, int var2) {
|
||||
@@ -117,142 +127,53 @@ public class EnumComposition extends DualNode {
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)I",
|
||||
garbageValue = "1327387533"
|
||||
garbageValue = "2120023502"
|
||||
)
|
||||
@Export("size")
|
||||
public int size() {
|
||||
return this.outputCount;
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(IZI)Ljava/lang/String;",
|
||||
garbageValue = "1485411533"
|
||||
)
|
||||
@Export("intToString")
|
||||
public static String intToString(int var0, boolean var1) {
|
||||
if (var1 && var0 >= 0) {
|
||||
int var3 = var0;
|
||||
String var2;
|
||||
if (var1 && var0 >= 0) {
|
||||
int var4 = 2;
|
||||
|
||||
for (int var5 = var0 / 10; var5 != 0; ++var4) {
|
||||
var5 /= 10;
|
||||
}
|
||||
|
||||
char[] var6 = new char[var4];
|
||||
var6[0] = '+';
|
||||
|
||||
for (int var7 = var4 - 1; var7 > 0; --var7) {
|
||||
int var8 = var3;
|
||||
var3 /= 10;
|
||||
int var9 = var8 - var3 * 10;
|
||||
if (var9 >= 10) {
|
||||
var6[var7] = (char)(var9 + 87);
|
||||
} else {
|
||||
var6[var7] = (char)(var9 + 48);
|
||||
}
|
||||
}
|
||||
|
||||
var2 = new String(var6);
|
||||
} else {
|
||||
var2 = Integer.toString(var0, 10);
|
||||
}
|
||||
|
||||
return var2;
|
||||
} else {
|
||||
return Integer.toString(var0);
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)V",
|
||||
garbageValue = "-1969293465"
|
||||
descriptor = "(IIII)I",
|
||||
garbageValue = "-358460107"
|
||||
)
|
||||
public static void method2940() {
|
||||
NPCComposition.NpcDefinition_cached.clear();
|
||||
NPCComposition.NpcDefinition_cachedModels.clear();
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ILbg;ZB)I",
|
||||
garbageValue = "2"
|
||||
)
|
||||
static int method2941(int var0, Script var1, boolean var2) {
|
||||
Widget var3 = var2 ? PacketWriter.scriptDotWidget : class9.scriptActiveWidget;
|
||||
if (var0 == ScriptOpcodes.CC_GETSCROLLX) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.scrollX;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETSCROLLY) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.scrollY;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETTEXT) {
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.text;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETSCROLLWIDTH) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.scrollWidth;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETSCROLLHEIGHT) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.scrollHeight;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELZOOM) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.modelZoom;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_X) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.modelAngleX;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_Z) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.modelAngleZ;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELANGLE_Y) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.modelAngleY;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETTRANS) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.transparencyTop;
|
||||
return 1;
|
||||
} else if (var0 == 1610) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.transparencyBot;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETCOLOUR) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.color;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETFILLCOLOUR) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.color2;
|
||||
return 1;
|
||||
} else if (var0 == 1613) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.fillMode.rsOrdinal();
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETMODELTRANSPARENT) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = var3.modelTransparency ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 != 1615 && var0 != 1616) {
|
||||
return 2;
|
||||
public static int method2998(int var0, int var1, int var2) {
|
||||
var2 &= 3;
|
||||
if (var2 == 0) {
|
||||
return var0;
|
||||
} else if (var2 == 1) {
|
||||
return var1;
|
||||
} else {
|
||||
++class240.Interpreter_intStackSize;
|
||||
return 1;
|
||||
return var2 == 2 ? 7 - var0 : 7 - var1;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("ai")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ILbg;ZI)I",
|
||||
garbageValue = "1392924736"
|
||||
descriptor = "(Ljava/io/File;Ljava/io/File;I)V",
|
||||
garbageValue = "1964426544"
|
||||
)
|
||||
static int method2938(int var0, Script var1, boolean var2) {
|
||||
if (var0 == 6900) {
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
|
||||
return 1;
|
||||
} else if (var0 == 6950) {
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = -1;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
static void method3007(File var0, File var1) {
|
||||
try {
|
||||
AccessFile var2 = new AccessFile(JagexCache.JagexCache_locationFile, "rw", 10000L);
|
||||
Buffer var3 = new Buffer(500);
|
||||
var3.writeByte(3);
|
||||
var3.writeByte(var1 != null ? 1 : 0);
|
||||
var3.writeCESU8(var0.getPath());
|
||||
if (var1 != null) {
|
||||
var3.writeCESU8("");
|
||||
}
|
||||
|
||||
var2.write(var3.array, 0, var3.offset);
|
||||
var2.close();
|
||||
} catch (IOException var4) {
|
||||
var4.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user