client: revvy boi 202

This commit is contained in:
JumpIfZero
2021-12-09 15:12:57 +02:00
parent 5d758a3394
commit 9f716fea3a
496 changed files with 62975 additions and 58430 deletions

View File

@@ -1,29 +1,31 @@
import java.io.DataInputStream;
import java.io.EOFException;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.io.SyncFailedException;
import java.net.URL;
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;
@ObfuscatedName("nv")
@ObfuscatedName("oa")
@Implements("AccessFile")
public final class AccessFile {
@ObfuscatedName("i")
@ObfuscatedName("c")
@Export("file")
RandomAccessFile file;
@ObfuscatedName("w")
@ObfuscatedName("b")
@ObfuscatedGetter(
longValue = -1037204394665170999L
longValue = 6458662844052359411L
)
@Export("maxSize")
final long maxSize;
@ObfuscatedName("s")
@ObfuscatedName("p")
@ObfuscatedGetter(
longValue = -743568297070171741L
longValue = -4202787537300384147L
)
@Export("offset")
long offset;
@@ -49,52 +51,52 @@ public final class AccessFile {
this.file.seek(0L); // L: 23
} // L: 24
@ObfuscatedName("i")
@ObfuscatedName("c")
@Export("seek")
final void seek(long var1) throws IOException {
this.file.seek(var1); // L: 27
this.offset = var1; // L: 28
} // L: 29
@ObfuscatedName("w")
@ObfuscatedName("b")
@ObfuscatedSignature(
descriptor = "([BIIS)V",
garbageValue = "-31371"
garbageValue = "-13111"
)
@Export("write")
public final void write(byte[] var1, int var2, int var3) throws IOException {
if ((long)var3 + this.offset > this.maxSize) { // L: 32
this.file.seek(this.maxSize); // L: 33
this.file.write(1); // L: 34
throw new EOFException(); // L: 35
if (this.offset + (long)var3 > this.maxSize) { // L: 32
this.file.seek(this.maxSize);
this.file.write(1);
throw new EOFException();
} else {
this.file.write(var1, var2, var3); // L: 37
this.offset += (long)var3; // L: 38
this.file.write(var1, var2, var3);
this.offset += (long)var3;
}
} // L: 39
}
@ObfuscatedName("s")
@ObfuscatedName("p")
@ObfuscatedSignature(
descriptor = "(B)V",
garbageValue = "91"
descriptor = "(I)V",
garbageValue = "1700348985"
)
@Export("close")
public final void close() throws IOException {
this.closeSync(false); // L: 42
} // L: 43
this.closeSync(false);
}
@ObfuscatedName("a")
@ObfuscatedName("m")
@ObfuscatedSignature(
descriptor = "(ZB)V",
garbageValue = "-14"
descriptor = "(ZI)V",
garbageValue = "-824076886"
)
@Export("closeSync")
public final void closeSync(boolean var1) throws IOException {
if (this.file != null) { // L: 46
if (var1) { // L: 47
if (this.file != null) {
if (var1) {
try {
this.file.getFD().sync(); // L: 49
} catch (SyncFailedException var3) { // L: 51
} catch (SyncFailedException var3) {
}
}
@@ -104,20 +106,20 @@ public final class AccessFile {
} // L: 56
@ObfuscatedName("o")
@ObfuscatedName("t")
@ObfuscatedSignature(
descriptor = "(I)J",
garbageValue = "-633440828"
descriptor = "(B)J",
garbageValue = "-117"
)
@Export("length")
public final long length() throws IOException {
return this.file.length(); // L: 59
}
@ObfuscatedName("g")
@ObfuscatedName("s")
@ObfuscatedSignature(
descriptor = "([BIII)I",
garbageValue = "1378280482"
descriptor = "([BIIB)I",
garbageValue = "66"
)
@Export("read")
public final int read(byte[] var1, int var2, int var3) throws IOException {
@@ -136,4 +138,70 @@ public final class AccessFile {
}
} // L: 73
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;Ljava/lang/Throwable;I)V",
garbageValue = "-2057333088"
)
@Export("RunException_sendStackTrace")
public static void RunException_sendStackTrace(String var0, Throwable var1) {
if (var1 != null) {
var1.printStackTrace();
} else {
try {
String var2 = ""; // L: 33
if (var1 != null) { // L: 34
var2 = IgnoreList.method6267(var1);
}
if (var0 != null) { // L: 35
if (var1 != null) { // L: 36
var2 = var2 + " | ";
}
var2 = var2 + var0;
}
System.out.println("Error: " + var2);
var2 = var2.replace(':', '.');
var2 = var2.replace('@', '_');
var2 = var2.replace('&', '_');
var2 = var2.replace('#', '_');
if (RunException.RunException_applet == null) {
return;
}
URL var3 = new URL(RunException.RunException_applet.getCodeBase(), "clienterror.ws?c=" + RunException.RunException_revision + "&u=" + RunException.localPlayerName + "&v1=" + TaskHandler.javaVendor + "&v2=" + NPC.javaVersion + "&ct=" + class398.clientType + "&e=" + var2); // L: 45
DataInputStream var4 = new DataInputStream(var3.openStream()); // L: 46
var4.read(); // L: 47
var4.close(); // L: 48
} catch (Exception var5) { // L: 50
}
}
} // L: 51
@ObfuscatedName("b")
@ObfuscatedSignature(
descriptor = "(II)Lfo;",
garbageValue = "2133446029"
)
@Export("SpotAnimationDefinition_get")
public static SpotAnimationDefinition SpotAnimationDefinition_get(int var0) {
SpotAnimationDefinition var1 = (SpotAnimationDefinition)SpotAnimationDefinition.SpotAnimationDefinition_cached.get((long)var0); // L: 37
if (var1 != null) { // L: 38
return var1;
} else {
byte[] var2 = SpotAnimationDefinition.SpotAnimationDefinition_archive.takeFile(13, var0); // L: 39
var1 = new SpotAnimationDefinition(); // L: 40
var1.id = var0; // L: 41
if (var2 != null) { // L: 42
var1.decode(new Buffer(var2));
}
SpotAnimationDefinition.SpotAnimationDefinition_cached.put(var1, (long)var0); // L: 43
return var1; // L: 44
}
}
}