This commit is contained in:
Lucwousin
2019-10-31 16:57:45 +01:00
parent 8b7eaf23f1
commit e7a1983158
344 changed files with 41280 additions and 41078 deletions

View File

@@ -6,33 +6,33 @@ import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("kg")
@ObfuscatedName("ke")
@Implements("ArchiveDisk")
public final class ArchiveDisk {
@ObfuscatedName("z")
@ObfuscatedName("a")
@Export("ArchiveDisk_buffer")
static byte[] ArchiveDisk_buffer;
@ObfuscatedName("n")
@ObfuscatedName("t")
@ObfuscatedSignature(
signature = "Lmm;"
signature = "Lmz;"
)
@Export("datFile")
BufferedFile datFile;
@ObfuscatedName("v")
@ObfuscatedName("n")
@ObfuscatedSignature(
signature = "Lmm;"
signature = "Lmz;"
)
@Export("idxFile")
BufferedFile idxFile;
@ObfuscatedName("u")
@ObfuscatedName("q")
@ObfuscatedGetter(
intValue = 558641831
intValue = 161703877
)
@Export("archive")
int archive;
@ObfuscatedName("r")
@ObfuscatedName("v")
@ObfuscatedGetter(
intValue = -1322039527
intValue = -1904076189
)
@Export("maxEntrySize")
int maxEntrySize;
@@ -42,7 +42,7 @@ public final class ArchiveDisk {
}
@ObfuscatedSignature(
signature = "(ILmm;Lmm;I)V"
signature = "(ILmz;Lmz;I)V"
)
public ArchiveDisk(int var1, BufferedFile var2, BufferedFile var3, int var4) {
this.datFile = null;
@@ -54,10 +54,10 @@ public final class ArchiveDisk {
this.maxEntrySize = var4;
}
@ObfuscatedName("z")
@ObfuscatedName("a")
@ObfuscatedSignature(
signature = "(IB)[B",
garbageValue = "1"
signature = "(II)[B",
garbageValue = "909989456"
)
@Export("read")
public byte[] read(int var1) {
@@ -89,7 +89,7 @@ public final class ArchiveDisk {
return (byte[])var10000;
}
this.datFile.seek((long)var4 * 520L);
this.datFile.seek(520L * (long)var4);
int var8 = var3 - var6;
int var9;
int var10;
@@ -102,7 +102,7 @@ public final class ArchiveDisk {
}
var13 = 10;
this.datFile.read(ArchiveDisk_buffer, 0, var8 + var13);
this.datFile.read(ArchiveDisk_buffer, 0, var13 + var8);
var9 = ((ArchiveDisk_buffer[1] & 255) << 16) + ((ArchiveDisk_buffer[0] & 255) << 24) + (ArchiveDisk_buffer[3] & 255) + ((ArchiveDisk_buffer[2] & 255) << 8);
var10 = (ArchiveDisk_buffer[5] & 255) + ((ArchiveDisk_buffer[4] & 255) << 8);
var11 = (ArchiveDisk_buffer[8] & 255) + ((ArchiveDisk_buffer[7] & 255) << 8) + ((ArchiveDisk_buffer[6] & 255) << 16);
@@ -120,7 +120,7 @@ public final class ArchiveDisk {
var12 = ArchiveDisk_buffer[7] & 255;
}
if (var9 == var1 && var10 == var7 && var12 == this.archive) {
if (var9 == var1 && var7 == var10 && var12 == this.archive) {
if (var11 >= 0 && (long)var11 <= this.datFile.length() / 520L) {
int var14 = var13 + var8;
@@ -151,10 +151,10 @@ public final class ArchiveDisk {
}
}
@ObfuscatedName("n")
@ObfuscatedName("t")
@ObfuscatedSignature(
signature = "(I[BII)Z",
garbageValue = "-1069570750"
garbageValue = "434454104"
)
@Export("write")
public boolean write(int var1, byte[] var2, int var3) {
@@ -172,10 +172,10 @@ public final class ArchiveDisk {
}
}
@ObfuscatedName("v")
@ObfuscatedName("n")
@ObfuscatedSignature(
signature = "(I[BIZI)Z",
garbageValue = "1005578949"
garbageValue = "-498922457"
)
@Export("write0")
boolean write0(int var1, byte[] var2, int var3, boolean var4) {
@@ -216,7 +216,7 @@ public final class ArchiveDisk {
while (true) {
if (var7 < var3) {
label171: {
label170: {
int var9 = 0;
int var10;
if (var4) {
@@ -227,7 +227,7 @@ public final class ArchiveDisk {
try {
this.datFile.read(ArchiveDisk_buffer, 0, 10);
} catch (EOFException var17) {
break label171;
break label170;
}
var10 = ((ArchiveDisk_buffer[1] & 255) << 16) + ((ArchiveDisk_buffer[0] & 255) << 24) + (ArchiveDisk_buffer[3] & 255) + ((ArchiveDisk_buffer[2] & 255) << 8);
@@ -238,7 +238,7 @@ public final class ArchiveDisk {
try {
this.datFile.read(ArchiveDisk_buffer, 0, 8);
} catch (EOFException var16) {
break label171;
break label170;
}
var10 = (ArchiveDisk_buffer[1] & 255) + ((ArchiveDisk_buffer[0] & 255) << 8);
@@ -265,7 +265,7 @@ public final class ArchiveDisk {
++var9;
}
if (var9 == var6) {
if (var6 == var9) {
++var9;
}
}
@@ -285,7 +285,7 @@ public final class ArchiveDisk {
ArchiveDisk_buffer[7] = (byte)(var9 >> 8);
ArchiveDisk_buffer[8] = (byte)var9;
ArchiveDisk_buffer[9] = (byte)this.archive;
this.datFile.seek(520L * (long)var6);
this.datFile.seek((long)var6 * 520L);
this.datFile.write(ArchiveDisk_buffer, 0, 10);
var10 = var3 - var7;
if (var10 > 510) {
@@ -336,123 +336,4 @@ public final class ArchiveDisk {
public String toString() {
return "" + this.archive;
}
@ObfuscatedName("z")
@ObfuscatedSignature(
signature = "(Lkl;Ljava/lang/String;I)I",
garbageValue = "1895940511"
)
public static int method5796(Buffer var0, String var1) {
int var2 = var0.offset;
byte[] var3 = UserComparator3.method3394(var1);
var0.writeSmartByteShort(var3.length);
var0.offset += class210.huffman.compress(var3, 0, var3.length, var0.array, var0.offset);
return var0.offset - var2;
}
@ObfuscatedName("el")
@ObfuscatedSignature(
signature = "(II)V",
garbageValue = "1355807172"
)
@Export("getLoginError")
static void getLoginError(int var0) {
if (var0 == -3) {
PlayerType.setLoginResponseString("Connection timed out.", "Please try using a different world.", "");
} else if (var0 == -2) {
PlayerType.setLoginResponseString("", "Error connecting to server.", "");
} else if (var0 == -1) {
PlayerType.setLoginResponseString("No response from server.", "Please try using a different world.", "");
} else if (var0 == 3) {
Login.loginIndex = 3;
Login.field1171 = 1;
} else if (var0 == 4) {
Login.loginIndex = 12;
Login.field1174 = 0;
} else if (var0 == 5) {
Login.field1171 = 2;
PlayerType.setLoginResponseString("Your account has not logged out from its last", "session or the server is too busy right now.", "Please try again in a few minutes.");
} else if (var0 == 68 || !Client.onMobile && var0 == 6) {
PlayerType.setLoginResponseString("RuneScape has been updated!", "Please reload this page.", "");
} else if (var0 == 7) {
PlayerType.setLoginResponseString("This world is full.", "Please use a different world.", "");
} else if (var0 == 8) {
PlayerType.setLoginResponseString("Unable to connect.", "Login server offline.", "");
} else if (var0 == 9) {
PlayerType.setLoginResponseString("Login limit exceeded.", "Too many connections from your address.", "");
} else if (var0 == 10) {
PlayerType.setLoginResponseString("Unable to connect.", "Bad session id.", "");
} else if (var0 == 11) {
PlayerType.setLoginResponseString("We suspect someone knows your password.", "Press 'change your password' on front page.", "");
} else if (var0 == 12) {
PlayerType.setLoginResponseString("You need a members account to login to this world.", "Please subscribe, or use a different world.", "");
} else if (var0 == 13) {
PlayerType.setLoginResponseString("Could not complete login.", "Please try using a different world.", "");
} else if (var0 == 14) {
PlayerType.setLoginResponseString("The server is being updated.", "Please wait 1 minute and try again.", "");
} else if (var0 == 16) {
PlayerType.setLoginResponseString("Too many login attempts.", "Please wait a few minutes before trying again.", "");
} else if (var0 == 17) {
PlayerType.setLoginResponseString("You are standing in a members-only area.", "To play on this world move to a free area first", "");
} else if (var0 == 18) {
Login.loginIndex = 12;
Login.field1174 = 1;
} else if (var0 == 19) {
PlayerType.setLoginResponseString("This world is running a closed Beta.", "Sorry invited players only.", "Please use a different world.");
} else if (var0 == 20) {
PlayerType.setLoginResponseString("Invalid loginserver requested.", "Please try using a different world.", "");
} else if (var0 == 22) {
PlayerType.setLoginResponseString("Malformed login packet.", "Please try again.", "");
} else if (var0 == 23) {
PlayerType.setLoginResponseString("No reply from loginserver.", "Please wait 1 minute and try again.", "");
} else if (var0 == 24) {
PlayerType.setLoginResponseString("Error loading your profile.", "Please contact customer support.", "");
} else if (var0 == 25) {
PlayerType.setLoginResponseString("Unexpected loginserver response.", "Please try using a different world.", "");
} else if (var0 == 26) {
PlayerType.setLoginResponseString("This computers address has been blocked", "as it was used to break our rules.", "");
} else if (var0 == 27) {
PlayerType.setLoginResponseString("", "Service unavailable.", "");
} else if (var0 == 31) {
PlayerType.setLoginResponseString("Your account must have a displayname set", "in order to play the game. Please set it", "via the website, or the main game.");
} else if (var0 == 32) {
PlayerType.setLoginResponseString("Your attempt to log into your account was", "unsuccessful. Don't worry, you can sort", "this out by visiting the billing system.");
} else if (var0 == 37) {
PlayerType.setLoginResponseString("Your account is currently inaccessible.", "Please try again in a few minutes.", "");
} else if (var0 == 38) {
PlayerType.setLoginResponseString("You need to vote to play!", "Visit runescape.com and vote,", "and then come back here!");
} else if (var0 == 55) {
Login.loginIndex = 8;
} else {
if (var0 == 56) {
PlayerType.setLoginResponseString("Enter the 6-digit code generated by your", "authenticator app.", "");
MouseRecorder.updateGameState(11);
return;
}
if (var0 == 57) {
PlayerType.setLoginResponseString("The code you entered was incorrect.", "Please try again.", "");
MouseRecorder.updateGameState(11);
return;
}
if (var0 == 61) {
Login.loginIndex = 7;
} else {
PlayerType.setLoginResponseString("Unexpected server response", "Please try using a different world.", "");
}
}
MouseRecorder.updateGameState(10);
}
@ObfuscatedName("kb")
@ObfuscatedSignature(
signature = "(Lkl;IB)V",
garbageValue = "16"
)
static void method5801(Buffer var0, int var1) {
LoginScreenAnimation.method1832(var0.array, var1);
SoundSystem.method2468(var0, var1);
}
}