This commit is contained in:
ThatGamerBlue
2021-05-19 12:59:30 +01:00
parent 7eb96d606a
commit 29a3d313a4
438 changed files with 51991 additions and 51730 deletions

View File

@@ -1,210 +1,203 @@
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
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("el")
@ObfuscatedName("fa")
@Implements("CollisionMap")
public class CollisionMap {
@ObfuscatedName("e")
@ObfuscatedName("al")
@ObfuscatedGetter(
intValue = -1593965705
)
public static int field1535;
@ObfuscatedName("aw")
@ObfuscatedGetter(
intValue = -1207023295
intValue = 1848440881
)
@Export("xInset")
public int xInset;
@ObfuscatedName("ap")
@ObfuscatedGetter(
intValue = 1514809971
intValue = -344240049
)
@Export("yInset")
public int yInset;
@ObfuscatedName("ax")
@ObfuscatedName("am")
@ObfuscatedGetter(
intValue = 1497188267
intValue = 973299583
)
@Export("xSize")
int xSize;
@ObfuscatedName("as")
@ObfuscatedName("ax")
@ObfuscatedGetter(
intValue = 703180001
intValue = -2082361781
)
@Export("ySize")
int ySize;
@ObfuscatedName("ad")
@ObfuscatedName("ak")
@Export("flags")
public int[][] flags;
public CollisionMap(int var1, int var2) {
this.xInset = 0; // L: 44
this.yInset = 0;
this.xSize = var1;
this.yInset = 0; // L: 45
this.xSize = var1; // L: 46
this.ySize = var2; // L: 47
this.flags = new int[this.xSize][this.ySize];
this.flags = new int[this.xSize][this.ySize]; // L: 48
this.clear(); // L: 49
}
} // L: 50
@ObfuscatedName("f")
@ObfuscatedName("h")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "147847129"
garbageValue = "2125907821"
)
@Export("clear")
public void clear() {
for (int var1 = 0; var1 < this.xSize; ++var1) {
for (int var1 = 0; var1 < this.xSize; ++var1) { // L: 53
for (int var2 = 0; var2 < this.ySize; ++var2) { // L: 54
if (var1 != 0 && var2 != 0 && var1 < this.xSize - 5 && var2 < this.ySize - 5) {
this.flags[var1][var2] = 16777216;
if (var1 != 0 && var2 != 0 && var1 < this.xSize - 5 && var2 < this.ySize - 5) { // L: 55
this.flags[var1][var2] = 16777216; // L: 56
} else {
this.flags[var1][var2] = 16777215;
}
}
}
}
} // L: 59
@ObfuscatedName("o")
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "(IIIIZI)V",
garbageValue = "-1236206296"
garbageValue = "207593472"
)
public void method2613(int var1, int var2, int var3, int var4, boolean var5) {
public void method3094(int var1, int var2, int var3, int var4, boolean var5) {
var1 -= this.xInset; // L: 62
var2 -= this.yInset;
if (var3 == 0) {
if (var4 == 0) {
this.setFlag(var1, var2, 128);
this.setFlag(var1 - 1, var2, 8);
var2 -= this.yInset; // L: 63
if (var3 == 0) { // L: 64
if (var4 == 0) { // L: 65
this.setFlag(var1, var2, 128); // L: 66
this.setFlag(var1 - 1, var2, 8); // L: 67
}
if (var4 == 1) { // L: 69
this.setFlag(var1, var2, 2);
this.setFlag(var1, var2 + 1, 32);
this.setFlag(var1, var2, 2); // L: 70
this.setFlag(var1, var2 + 1, 32); // L: 71
}
if (var4 == 2) {
this.setFlag(var1, var2, 8);
this.setFlag(var1 + 1, var2, 128);
if (var4 == 2) { // L: 73
this.setFlag(var1, var2, 8); // L: 74
this.setFlag(var1 + 1, var2, 128); // L: 75
}
if (var4 == 3) { // L: 77
this.setFlag(var1, var2, 32);
this.setFlag(var1, var2 - 1, 2);
this.setFlag(var1, var2, 32); // L: 78
this.setFlag(var1, var2 - 1, 2); // L: 79
}
}
if (var3 == 1 || var3 == 3) {
if (var4 == 0) {
if (var3 == 1 || var3 == 3) { // L: 82
if (var4 == 0) { // L: 83
this.setFlag(var1, var2, 1); // L: 84
this.setFlag(var1 - 1, var2 + 1, 16);
this.setFlag(var1 - 1, var2 + 1, 16); // L: 85
}
if (var4 == 1) {
this.setFlag(var1, var2, 4);
this.setFlag(var1 + 1, var2 + 1, 64);
if (var4 == 1) { // L: 87
this.setFlag(var1, var2, 4); // L: 88
this.setFlag(var1 + 1, var2 + 1, 64); // L: 89
}
if (var4 == 2) {
this.setFlag(var1, var2, 16);
if (var4 == 2) { // L: 91
this.setFlag(var1, var2, 16); // L: 92
this.setFlag(var1 + 1, var2 - 1, 1); // L: 93
}
if (var4 == 3) {
this.setFlag(var1, var2, 64);
if (var4 == 3) { // L: 95
this.setFlag(var1, var2, 64); // L: 96
this.setFlag(var1 - 1, var2 - 1, 4); // L: 97
}
}
if (var3 == 2) {
if (var4 == 0) {
if (var3 == 2) { // L: 100
if (var4 == 0) { // L: 101
this.setFlag(var1, var2, 130); // L: 102
this.setFlag(var1 - 1, var2, 8);
this.setFlag(var1, var2 + 1, 32);
this.setFlag(var1 - 1, var2, 8); // L: 103
this.setFlag(var1, var2 + 1, 32); // L: 104
}
if (var4 == 1) {
if (var4 == 1) { // L: 106
this.setFlag(var1, var2, 10); // L: 107
this.setFlag(var1, var2 + 1, 32); // L: 108
this.setFlag(var1 + 1, var2, 128);
this.setFlag(var1 + 1, var2, 128); // L: 109
}
if (var4 == 2) {
this.setFlag(var1, var2, 40);
if (var4 == 2) { // L: 111
this.setFlag(var1, var2, 40); // L: 112
this.setFlag(var1 + 1, var2, 128); // L: 113
this.setFlag(var1, var2 - 1, 2); // L: 114
}
if (var4 == 3) {
this.setFlag(var1, var2, 160);
this.setFlag(var1, var2 - 1, 2);
this.setFlag(var1 - 1, var2, 8);
if (var4 == 3) { // L: 116
this.setFlag(var1, var2, 160); // L: 117
this.setFlag(var1, var2 - 1, 2); // L: 118
this.setFlag(var1 - 1, var2, 8); // L: 119
}
}
if (var5) {
if (var3 == 0) {
if (var4 == 0) {
if (var5) { // L: 122
if (var3 == 0) { // L: 123
if (var4 == 0) { // L: 124
this.setFlag(var1, var2, 65536); // L: 125
this.setFlag(var1 - 1, var2, 4096); // L: 126
}
if (var4 == 1) { // L: 128
this.setFlag(var1, var2, 1024); // L: 129
this.setFlag(var1, var2 + 1, 16384);
this.setFlag(var1, var2 + 1, 16384); // L: 130
}
if (var4 == 2) {
if (var4 == 2) { // L: 132
this.setFlag(var1, var2, 4096); // L: 133
this.setFlag(var1 + 1, var2, 65536);
this.setFlag(var1 + 1, var2, 65536); // L: 134
}
if (var4 == 3) {
if (var4 == 3) { // L: 136
this.setFlag(var1, var2, 16384); // L: 137
this.setFlag(var1, var2 - 1, 1024);
this.setFlag(var1, var2 - 1, 1024); // L: 138
}
}
if (var3 == 1 || var3 == 3) {
if (var4 == 0) {
if (var3 == 1 || var3 == 3) { // L: 141
if (var4 == 0) { // L: 142
this.setFlag(var1, var2, 512); // L: 143
this.setFlag(var1 - 1, var2 + 1, 8192);
this.setFlag(var1 - 1, var2 + 1, 8192); // L: 144
}
if (var4 == 1) {
if (var4 == 1) { // L: 146
this.setFlag(var1, var2, 2048); // L: 147
this.setFlag(var1 + 1, var2 + 1, 32768); // L: 148
}
if (var4 == 2) { // L: 150
this.setFlag(var1, var2, 8192);
this.setFlag(var1 + 1, var2 - 1, 512);
this.setFlag(var1, var2, 8192); // L: 151
this.setFlag(var1 + 1, var2 - 1, 512); // L: 152
}
if (var4 == 3) {
if (var4 == 3) { // L: 154
this.setFlag(var1, var2, 32768); // L: 155
this.setFlag(var1 - 1, var2 - 1, 2048);
this.setFlag(var1 - 1, var2 - 1, 2048); // L: 156
}
}
if (var3 == 2) {
if (var4 == 0) {
this.setFlag(var1, var2, 66560);
this.setFlag(var1 - 1, var2, 4096);
if (var3 == 2) { // L: 159
if (var4 == 0) { // L: 160
this.setFlag(var1, var2, 66560); // L: 161
this.setFlag(var1 - 1, var2, 4096); // L: 162
this.setFlag(var1, var2 + 1, 16384); // L: 163
}
if (var4 == 1) {
this.setFlag(var1, var2, 5120);
if (var4 == 1) { // L: 165
this.setFlag(var1, var2, 5120); // L: 166
this.setFlag(var1, var2 + 1, 16384); // L: 167
this.setFlag(var1 + 1, var2, 65536);
this.setFlag(var1 + 1, var2, 65536); // L: 168
}
if (var4 == 2) { // L: 170
@@ -213,30 +206,30 @@ public class CollisionMap {
this.setFlag(var1, var2 - 1, 1024); // L: 173
}
if (var4 == 3) {
if (var4 == 3) { // L: 175
this.setFlag(var1, var2, 81920); // L: 176
this.setFlag(var1, var2 - 1, 1024); // L: 177
this.setFlag(var1 - 1, var2, 4096);
this.setFlag(var1 - 1, var2, 4096); // L: 178
}
}
}
} // L: 182
@ObfuscatedName("u")
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "(IIIIZI)V",
garbageValue = "-1542434714"
descriptor = "(IIIIZB)V",
garbageValue = "15"
)
@Export("addGameObject")
public void addGameObject(int var1, int var2, int var3, int var4, boolean var5) {
int var6 = 256;
if (var5) {
int var6 = 256; // L: 185
if (var5) { // L: 186
var6 += 131072;
}
var1 -= this.xInset;
var2 -= this.yInset;
var1 -= this.xInset; // L: 187
var2 -= this.yInset; // L: 188
for (int var7 = var1; var7 < var3 + var1; ++var7) { // L: 189
if (var7 >= 0 && var7 < this.xSize) { // L: 190
@@ -248,57 +241,57 @@ public class CollisionMap {
}
}
}
} // L: 196
@ObfuscatedName("p")
@ObfuscatedName("g")
@ObfuscatedSignature(
descriptor = "(IIB)V",
garbageValue = "2"
descriptor = "(III)V",
garbageValue = "-1507041806"
)
@Export("setBlockedByFloor")
public void setBlockedByFloor(int var1, int var2) {
var1 -= this.xInset;
var2 -= this.yInset;
var1 -= this.xInset; // L: 199
var2 -= this.yInset; // L: 200
int[] var10000 = this.flags[var1]; // L: 201
var10000[var2] |= 2097152;
} // L: 202
@ObfuscatedName("b")
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "(III)V",
garbageValue = "1437580764"
garbageValue = "-1454787756"
)
@Export("setBlockedByFloorDec")
public void setBlockedByFloorDec(int var1, int var2) {
var1 -= this.xInset;
var2 -= this.yInset;
int[] var10000 = this.flags[var1];
var1 -= this.xInset; // L: 205
var2 -= this.yInset; // L: 206
int[] var10000 = this.flags[var1]; // L: 207
var10000[var2] |= 262144;
}
} // L: 208
@ObfuscatedName("e")
@ObfuscatedName("z")
@ObfuscatedSignature(
descriptor = "(IIII)V",
garbageValue = "-1947097076"
garbageValue = "1498371160"
)
@Export("setFlag")
void setFlag(int var1, int var2, int var3) {
int[] var10000 = this.flags[var1];
int[] var10000 = this.flags[var1]; // L: 211
var10000[var2] |= var3;
}
} // L: 212
@ObfuscatedName("k")
@ObfuscatedName("t")
@ObfuscatedSignature(
descriptor = "(IIIIZI)V",
garbageValue = "1853032959"
garbageValue = "68640304"
)
public void method2616(int var1, int var2, int var3, int var4, boolean var5) {
var1 -= this.xInset;
var2 -= this.yInset;
public void method3099(int var1, int var2, int var3, int var4, boolean var5) {
var1 -= this.xInset; // L: 215
var2 -= this.yInset; // L: 216
if (var3 == 0) { // L: 217
if (var4 == 0) {
this.setFlagOff(var1, var2, 128);
this.setFlagOff(var1 - 1, var2, 8);
if (var4 == 0) { // L: 218
this.setFlagOff(var1, var2, 128); // L: 219
this.setFlagOff(var1 - 1, var2, 8); // L: 220
}
if (var4 == 1) { // L: 222
@@ -439,10 +432,10 @@ public class CollisionMap {
} // L: 335
@ObfuscatedName("g")
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(IIIIIZI)V",
garbageValue = "792603684"
garbageValue = "-573687075"
)
@Export("setFlagOffNonSquare")
public void setFlagOffNonSquare(int var1, int var2, int var3, int var4, int var5, boolean var6) {
@@ -472,10 +465,10 @@ public class CollisionMap {
} // L: 354
@ObfuscatedName("h")
@ObfuscatedName("b")
@ObfuscatedSignature(
descriptor = "(IIIB)V",
garbageValue = "7"
descriptor = "(IIII)V",
garbageValue = "1089758431"
)
@Export("setFlagOff")
void setFlagOff(int var1, int var2, int var3) {
@@ -483,254 +476,127 @@ public class CollisionMap {
var10000[var2] &= ~var3;
} // L: 358
@ObfuscatedName("n")
@ObfuscatedName("q")
@ObfuscatedSignature(
descriptor = "(III)V",
garbageValue = "-1556531543"
garbageValue = "-143187538"
)
public void method2621(int var1, int var2) {
public void method3102(int var1, int var2) {
var1 -= this.xInset; // L: 361
var2 -= this.yInset; // L: 362
int[] var10000 = this.flags[var1]; // L: 363
var10000[var2] &= -262145;
} // L: 364
@ObfuscatedName("f")
@ObfuscatedName("w")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;Ljava/lang/String;III)V",
garbageValue = "-1545015307"
descriptor = "(ILci;ZI)I",
garbageValue = "2011512595"
)
@Export("findAndLoadCache")
public static void findAndLoadCache(String var0, String var1, int var2, int var3) throws IOException {
JagexCache.idxCount = var3; // L: 40
class20.cacheGamebuild = var2; // L: 41
try {
Varps.operatingSystemName = System.getProperty("os.name"); // L: 43
} catch (Exception var29) { // L: 45
Varps.operatingSystemName = "Unknown"; // L: 46
}
Decimator.formattedOperatingSystemName = Varps.operatingSystemName.toLowerCase(); // L: 48
try {
Canvas.userHomeDirectory = System.getProperty("user.home"); // L: 50
if (Canvas.userHomeDirectory != null) { // L: 51
Canvas.userHomeDirectory = Canvas.userHomeDirectory + "/";
}
} catch (Exception var28) { // L: 53
}
try {
if (Decimator.formattedOperatingSystemName.startsWith("win")) { // L: 55
if (Canvas.userHomeDirectory == null) { // L: 56
Canvas.userHomeDirectory = System.getenv("USERPROFILE");
}
} else if (Canvas.userHomeDirectory == null) { // L: 59
Canvas.userHomeDirectory = System.getenv("HOME");
static int method3127(int var0, Script var1, boolean var2) {
int var3;
int var6;
int var9;
if (var0 == ScriptOpcodes.ENUM_STRING) { // L: 2001
WorldMapCacheName.Interpreter_intStackSize -= 2; // L: 2002
var3 = Interpreter.Interpreter_intStack[WorldMapCacheName.Interpreter_intStackSize]; // L: 2003
var9 = Interpreter.Interpreter_intStack[WorldMapCacheName.Interpreter_intStackSize + 1]; // L: 2004
EnumComposition var10 = ViewportMouse.getEnum(var3); // L: 2005
if (var10.outputType != 's') { // L: 2006
}
if (Canvas.userHomeDirectory != null) { // L: 61
Canvas.userHomeDirectory = Canvas.userHomeDirectory + "/";
}
} catch (Exception var27) { // L: 63
}
if (Canvas.userHomeDirectory == null) { // L: 64
Canvas.userHomeDirectory = "~/";
}
IntHashTable.cacheParentPaths = new String[]{"c:/rscache/", "/rscache/", "c:/windows/", "c:/winnt/", "c:/", Canvas.userHomeDirectory, "/tmp/", ""}; // L: 65
class311.cacheSubPaths = new String[]{".jagex_cache_" + class20.cacheGamebuild, ".file_store_" + class20.cacheGamebuild}; // L: 66
int var18 = 0;
label277:
while (var18 < 4) {
String var6 = var18 == 0 ? "" : "" + var18; // L: 70
JagexCache.JagexCache_locationFile = new File(Canvas.userHomeDirectory, "jagex_cl_" + var0 + "_" + var1 + var6 + ".dat"); // L: 71
String var7 = null; // L: 72
String var8 = null; // L: 73
boolean var9 = false; // L: 74
File var36;
if (JagexCache.JagexCache_locationFile.exists()) { // L: 75
try {
AccessFile var10 = new AccessFile(JagexCache.JagexCache_locationFile, "rw", 10000L); // L: 78
Buffer var11;
int var12;
for (var11 = new Buffer((int)var10.length()); var11.offset < var11.array.length; var11.offset += var12) { // L: 79 80 83
var12 = var10.read(var11.array, var11.offset, var11.array.length - var11.offset); // L: 81
if (var12 == -1) { // L: 82
throw new IOException();
}
}
var11.offset = 0; // L: 85
var12 = var11.readUnsignedByte(); // L: 86
if (var12 < 1 || var12 > 3) { // L: 87
throw new IOException("" + var12);
}
int var13 = 0; // L: 88
if (var12 > 1) { // L: 89
var13 = var11.readUnsignedByte();
}
if (var12 <= 2) { // L: 90
var7 = var11.readStringCp1252NullCircumfixed(); // L: 91
if (var13 == 1) { // L: 92
var8 = var11.readStringCp1252NullCircumfixed();
}
} else {
var7 = var11.readCESU8(); // L: 95
if (var13 == 1) { // L: 96
var8 = var11.readCESU8();
}
}
var10.close(); // L: 98
} catch (IOException var32) { // L: 100
var32.printStackTrace(); // L: 101
}
if (var7 != null) { // L: 103
var36 = new File(var7); // L: 104
if (!var36.exists()) { // L: 105
var7 = null; // L: 106
}
}
if (var7 != null) { // L: 109
var36 = new File(var7, "test.dat"); // L: 110
if (!MouseHandler.isWriteable(var36, true)) { // L: 111
var7 = null; // L: 112
}
for (var6 = 0; var6 < var10.outputCount; ++var6) { // L: 2007
if (var9 == var10.keys[var6]) { // L: 2008
Interpreter.Interpreter_stringStack[++class13.Interpreter_stringStackSize - 1] = var10.strVals[var6]; // L: 2009
var10 = null; // L: 2010
break;
}
}
if (var7 == null && var18 == 0) { // L: 116
label252:
for (int var19 = 0; var19 < class311.cacheSubPaths.length; ++var19) { // L: 117
for (int var20 = 0; var20 < IntHashTable.cacheParentPaths.length; ++var20) { // L: 118
File var21 = new File(IntHashTable.cacheParentPaths[var20] + class311.cacheSubPaths[var19] + File.separatorChar + var0 + File.separatorChar); // L: 119
if (var21.exists() && MouseHandler.isWriteable(new File(var21, "test.dat"), true)) { // L: 120 121
var7 = var21.toString(); // L: 122
var9 = true; // L: 123
break label252; // L: 124
}
}
}
if (var10 != null) { // L: 2014
Interpreter.Interpreter_stringStack[++class13.Interpreter_stringStackSize - 1] = var10.defaultStr;
}
if (var7 == null) { // L: 130
var7 = Canvas.userHomeDirectory + File.separatorChar + "jagexcache" + var6 + File.separatorChar + var0 + File.separatorChar + var1 + File.separatorChar; // L: 131
var9 = true; // L: 132
}
if (var8 != null) { // L: 134
File var35 = new File(var8); // L: 135
var36 = new File(var7); // L: 136
try {
File[] var39 = var35.listFiles(); // L: 138
File[] var22 = var39; // L: 140
for (int var14 = 0; var14 < var22.length; ++var14) { // L: 141
File var15 = var22[var14]; // L: 142
File var16 = new File(var36, var15.getName()); // L: 144
boolean var17 = var15.renameTo(var16); // L: 145
if (!var17) { // L: 146
throw new IOException();
}
}
} catch (Exception var31) { // L: 151
var31.printStackTrace(); // L: 152
}
var9 = true; // L: 154
}
if (var9) { // L: 156
BuddyRankComparator.method2475(new File(var7), (File)null);
}
File var5 = new File(var7); // L: 157
JagexCache.cacheDir = var5; // L: 159
if (!JagexCache.cacheDir.exists()) { // L: 160
JagexCache.cacheDir.mkdirs();
}
File[] var34 = JagexCache.cacheDir.listFiles(); // L: 161
if (var34 != null) { // L: 162
File[] var37 = var34; // L: 164
for (int var23 = 0; var23 < var37.length; ++var23) { // L: 165
File var24 = var37[var23]; // L: 166
if (!MouseHandler.isWriteable(var24, false)) { // L: 168
++var18; // L: 67
continue label277;
}
}
}
break;
}
InvDefinition.assertCacheDirExists(JagexCache.cacheDir); // L: 175
try {
File var4 = new File(Canvas.userHomeDirectory, "random.dat"); // L: 178
int var26;
if (var4.exists()) { // L: 179
JagexCache.JagexCache_randomDat = new BufferedFile(new AccessFile(var4, "rw", 25L), 24, 0); // L: 180
return 1; // L: 2015
} else if (var0 != ScriptOpcodes.ENUM) { // L: 2017
if (var0 == ScriptOpcodes.ENUM_GETOUTPUTCOUNT) { // L: 2043
var3 = Interpreter.Interpreter_intStack[--WorldMapCacheName.Interpreter_intStackSize]; // L: 2044
EnumComposition var4 = ViewportMouse.getEnum(var3); // L: 2045
Interpreter.Interpreter_intStack[++WorldMapCacheName.Interpreter_intStackSize - 1] = var4.size(); // L: 2046
return 1; // L: 2047
} else {
label205:
for (int var25 = 0; var25 < class311.cacheSubPaths.length; ++var25) { // L: 183
for (var26 = 0; var26 < IntHashTable.cacheParentPaths.length; ++var26) { // L: 184
File var38 = new File(IntHashTable.cacheParentPaths[var26] + class311.cacheSubPaths[var25] + File.separatorChar + "random.dat"); // L: 185
if (var38.exists()) { // L: 186
JagexCache.JagexCache_randomDat = new BufferedFile(new AccessFile(var38, "rw", 25L), 24, 0); // L: 187
break label205; // L: 188
return 2; // L: 2049
}
} else {
WorldMapCacheName.Interpreter_intStackSize -= 4; // L: 2018
var3 = Interpreter.Interpreter_intStack[WorldMapCacheName.Interpreter_intStackSize]; // L: 2019
var9 = Interpreter.Interpreter_intStack[WorldMapCacheName.Interpreter_intStackSize + 1]; // L: 2020
int var5 = Interpreter.Interpreter_intStack[WorldMapCacheName.Interpreter_intStackSize + 2]; // L: 2021
var6 = Interpreter.Interpreter_intStack[WorldMapCacheName.Interpreter_intStackSize + 3]; // L: 2022
EnumComposition var7 = ViewportMouse.getEnum(var5); // L: 2023
if (var3 == var7.inputType && var9 == var7.outputType) { // L: 2024
for (int var8 = 0; var8 < var7.outputCount; ++var8) { // L: 2029
if (var6 == var7.keys[var8]) { // L: 2030
if (var9 == 115) { // L: 2031
Interpreter.Interpreter_stringStack[++class13.Interpreter_stringStackSize - 1] = var7.strVals[var8];
} else {
Interpreter.Interpreter_intStack[++WorldMapCacheName.Interpreter_intStackSize - 1] = var7.intVals[var8]; // L: 2032
}
var7 = null; // L: 2033
break;
}
}
if (var7 != null) { // L: 2037
if (var9 == 115) {
Interpreter.Interpreter_stringStack[++class13.Interpreter_stringStackSize - 1] = var7.defaultStr; // L: 2038
} else {
Interpreter.Interpreter_intStack[++WorldMapCacheName.Interpreter_intStackSize - 1] = var7.defaultInt; // L: 2039
}
}
return 1; // L: 2041
} else {
if (var9 == 115) { // L: 2025
Interpreter.Interpreter_stringStack[++class13.Interpreter_stringStackSize - 1] = "null";
} else {
Interpreter.Interpreter_intStack[++WorldMapCacheName.Interpreter_intStackSize - 1] = 0; // L: 2026
}
return 1; // L: 2027
}
if (JagexCache.JagexCache_randomDat == null) { // L: 193
RandomAccessFile var33 = new RandomAccessFile(var4, "rw"); // L: 194
var26 = var33.read(); // L: 195
var33.seek(0L); // L: 196
var33.write(var26); // L: 197
var33.seek(0L); // L: 198
var33.close(); // L: 199
JagexCache.JagexCache_randomDat = new BufferedFile(new AccessFile(var4, "rw", 25L), 24, 0); // L: 200
}
} catch (IOException var30) { // L: 203
}
JagexCache.JagexCache_dat2File = new BufferedFile(new AccessFile(class18.getFile("main_file_cache.dat2"), "rw", 1048576000L), 5200, 0); // L: 205
JagexCache.JagexCache_idx255File = new BufferedFile(new AccessFile(class18.getFile("main_file_cache.idx255"), "rw", 1048576L), 6000, 0); // L: 206
PendingSpawn.JagexCache_idxFiles = new BufferedFile[JagexCache.idxCount]; // L: 207
for (var18 = 0; var18 < JagexCache.idxCount; ++var18) { // L: 208
PendingSpawn.JagexCache_idxFiles[var18] = new BufferedFile(new AccessFile(class18.getFile("main_file_cache.idx" + var18), "rw", 1048576L), 6000, 0); // L: 209
}
}
@ObfuscatedName("u")
@ObfuscatedName("az")
@ObfuscatedSignature(
descriptor = "(Lig;IB)V",
garbageValue = "-121"
descriptor = "(ILci;ZI)I",
garbageValue = "-308143601"
)
static void method2622(Archive var0, int var1) {
if (BuddyRankComparator.NetCache_reference != null) { // L: 211
BuddyRankComparator.NetCache_reference.offset = var1 * 8 + 5; // L: 212
int var2 = BuddyRankComparator.NetCache_reference.readInt(); // L: 213
int var3 = BuddyRankComparator.NetCache_reference.readInt(); // L: 214
var0.loadIndex(var2, var3); // L: 215
static int method3110(int var0, Script var1, boolean var2) {
if (var0 == 7100) { // L: 4262
++WorldMapCacheName.Interpreter_intStackSize; // L: 4263
return 1; // L: 4264
} else if (var0 == 7101) { // L: 4266
class13.Interpreter_stringStackSize += 2; // L: 4267
return 1; // L: 4268
} else if (var0 != 7102 && var0 != 7103 && var0 != 7104 && var0 != 7105 && var0 != 7109) { // L: 4270
if (var0 == 7106) { // L: 4274
++WorldMapCacheName.Interpreter_intStackSize; // L: 4275
return 1; // L: 4276
} else if (var0 == 7107) { // L: 4278
++WorldMapCacheName.Interpreter_intStackSize; // L: 4279
return 1; // L: 4280
} else if (var0 == 7108) { // L: 4282
Interpreter.Interpreter_intStack[++WorldMapCacheName.Interpreter_intStackSize - 1] = class11.method190() ? 1 : 0; // L: 4283
return 1; // L: 4284
} else {
return 2; // L: 4286
}
} else {
Canvas.requestNetFile((Archive)null, 255, 255, 0, (byte)0, true); // L: 218
NetCache.NetCache_archives[var1] = var0; // L: 219
++WorldMapCacheName.Interpreter_intStackSize; // L: 4271
return 1; // L: 4272
}
} // L: 216 220
}
}