chore: revision 189
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringReader;
|
||||
import java.io.StringWriter;
|
||||
import java.util.zip.CRC32;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
@@ -5,111 +10,123 @@ import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("ib")
|
||||
@ObfuscatedName("ia")
|
||||
@Implements("NetCache")
|
||||
public class NetCache {
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lkr;"
|
||||
signature = "Llt;"
|
||||
)
|
||||
@Export("NetCache_socket")
|
||||
public static AbstractSocket NetCache_socket;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 840388525
|
||||
intValue = 1826620623
|
||||
)
|
||||
@Export("NetCache_loadTime")
|
||||
public static int NetCache_loadTime;
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -4475695681289819083L
|
||||
longValue = 2064372708518790169L
|
||||
)
|
||||
public static long field3170;
|
||||
@ObfuscatedName("e")
|
||||
public static long field3165;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lln;"
|
||||
signature = "Llv;"
|
||||
)
|
||||
@Export("NetCache_pendingPriorityWrites")
|
||||
public static NodeHashTable NetCache_pendingPriorityWrites;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1544867723
|
||||
intValue = 1340946103
|
||||
)
|
||||
@Export("NetCache_pendingPriorityWritesCount")
|
||||
public static int NetCache_pendingPriorityWritesCount;
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lln;"
|
||||
signature = "Llv;"
|
||||
)
|
||||
@Export("NetCache_pendingPriorityResponses")
|
||||
public static NodeHashTable NetCache_pendingPriorityResponses;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 562199049
|
||||
intValue = -1858030685
|
||||
)
|
||||
@Export("NetCache_pendingPriorityResponsesCount")
|
||||
public static int NetCache_pendingPriorityResponsesCount;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Ljq;"
|
||||
signature = "Ljl;"
|
||||
)
|
||||
@Export("NetCache_pendingWritesQueue")
|
||||
public static DualNodeDeque NetCache_pendingWritesQueue;
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lln;"
|
||||
signature = "Llv;"
|
||||
)
|
||||
@Export("NetCache_pendingWrites")
|
||||
public static NodeHashTable NetCache_pendingWrites;
|
||||
@ObfuscatedName("m")
|
||||
static NodeHashTable NetCache_pendingWrites;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1327913125
|
||||
intValue = -2108405401
|
||||
)
|
||||
@Export("NetCache_pendingWritesCount")
|
||||
public static int NetCache_pendingWritesCount;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lln;"
|
||||
signature = "Llv;"
|
||||
)
|
||||
@Export("NetCache_pendingResponses")
|
||||
public static NodeHashTable NetCache_pendingResponses;
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 818633537
|
||||
intValue = 1540381013
|
||||
)
|
||||
@Export("NetCache_pendingResponsesCount")
|
||||
public static int NetCache_pendingResponsesCount;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lkp;"
|
||||
signature = "Lix;"
|
||||
)
|
||||
@Export("NetCache_currentResponse")
|
||||
public static NetFileRequest NetCache_currentResponse;
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lkb;"
|
||||
)
|
||||
@Export("NetCache_responseHeaderBuffer")
|
||||
public static Buffer NetCache_responseHeaderBuffer;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1652930621
|
||||
)
|
||||
public static int field3181;
|
||||
@ObfuscatedName("z")
|
||||
@Export("NetCache_crc")
|
||||
static CRC32 NetCache_crc;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Lia;"
|
||||
signature = "Lkb;"
|
||||
)
|
||||
@Export("NetCache_responseArchiveBuffer")
|
||||
public static Buffer NetCache_responseArchiveBuffer;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -488987433
|
||||
)
|
||||
public static int field3178;
|
||||
@ObfuscatedName("b")
|
||||
@Export("NetCache_crc")
|
||||
public static CRC32 NetCache_crc;
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Lih;"
|
||||
)
|
||||
@Export("NetCache_archives")
|
||||
static Archive[] NetCache_archives;
|
||||
@ObfuscatedName("b")
|
||||
public static byte field3184;
|
||||
@ObfuscatedName("r")
|
||||
public static Archive[] NetCache_archives;
|
||||
@ObfuscatedName("o")
|
||||
public static byte field3163;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -287174121
|
||||
intValue = 2067454381
|
||||
)
|
||||
@Export("NetCache_crcMismatches")
|
||||
public static int NetCache_crcMismatches;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1375722445
|
||||
intValue = 1675917745
|
||||
)
|
||||
@Export("NetCache_ioExceptions")
|
||||
public static int NetCache_ioExceptions;
|
||||
@@ -126,96 +143,126 @@ public class NetCache {
|
||||
NetCache_pendingResponses = new NodeHashTable(4096);
|
||||
NetCache_pendingResponsesCount = 0;
|
||||
NetCache_responseHeaderBuffer = new Buffer(8);
|
||||
field3181 = 0;
|
||||
field3178 = 0;
|
||||
NetCache_crc = new CRC32();
|
||||
NetCache_archives = new Archive[256];
|
||||
field3184 = 0;
|
||||
field3163 = 0;
|
||||
NetCache_crcMismatches = 0;
|
||||
NetCache_ioExceptions = 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)Liz;",
|
||||
garbageValue = "79077079"
|
||||
signature = "(Ljava/lang/CharSequence;I)J",
|
||||
garbageValue = "706335608"
|
||||
)
|
||||
@Export("getNpcDefinition")
|
||||
public static NPCDefinition getNpcDefinition(int var0) {
|
||||
NPCDefinition var1 = (NPCDefinition)NPCDefinition.NpcDefinition_cached.get((long)var0);
|
||||
if (var1 != null) {
|
||||
return var1;
|
||||
} else {
|
||||
byte[] var2 = NPCDefinition.NpcDefinition_archive.takeFile(9, var0);
|
||||
var1 = new NPCDefinition();
|
||||
var1.id = var0;
|
||||
if (var2 != null) {
|
||||
var1.decode(new Buffer(var2));
|
||||
static long method4400(CharSequence var0) {
|
||||
long var1 = 0L;
|
||||
int var3 = var0.length();
|
||||
|
||||
for (int var4 = 0; var4 < var3; ++var4) {
|
||||
var1 *= 37L;
|
||||
char var5 = var0.charAt(var4);
|
||||
if (var5 >= 'A' && var5 <= 'Z') {
|
||||
var1 += (long)(var5 + 1 - 65);
|
||||
} else if (var5 >= 'a' && var5 <= 'z') {
|
||||
var1 += (long)(var5 + 1 - 97);
|
||||
} else if (var5 >= '0' && var5 <= '9') {
|
||||
var1 += (long)(var5 + 27 - 48);
|
||||
}
|
||||
|
||||
var1.postDecode();
|
||||
NPCDefinition.NpcDefinition_cached.put(var1, (long)var0);
|
||||
return var1;
|
||||
if (var1 >= 177917621779460413L) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
while (0L == var1 % 37L && var1 != 0L) {
|
||||
var1 /= 37L;
|
||||
}
|
||||
|
||||
return var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("ft")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/lang/String;I)V",
|
||||
garbageValue = "-824025022"
|
||||
signature = "(Lkb;Lln;I)Lln;",
|
||||
garbageValue = "-1200596784"
|
||||
)
|
||||
@Export("doCheat")
|
||||
static final void doCheat(String var0) {
|
||||
if (var0.equalsIgnoreCase("toggleroof")) {
|
||||
WorldMapSection2.clientPreferences.roofsHidden = !WorldMapSection2.clientPreferences.roofsHidden;
|
||||
WorldMapData_1.savePreferences();
|
||||
if (WorldMapSection2.clientPreferences.roofsHidden) {
|
||||
ClientPreferences.addGameMessage(99, "", "Roofs are now all hidden");
|
||||
@Export("readStringIntParameters")
|
||||
static final IterableNodeHashTable readStringIntParameters(Buffer var0, IterableNodeHashTable var1) {
|
||||
int var2 = var0.readUnsignedByte();
|
||||
int var3;
|
||||
if (var1 == null) {
|
||||
var3 = Calendar.method4033(var2);
|
||||
var1 = new IterableNodeHashTable(var3);
|
||||
}
|
||||
|
||||
for (var3 = 0; var3 < var2; ++var3) {
|
||||
boolean var4 = var0.readUnsignedByte() == 1;
|
||||
int var5 = var0.readMedium();
|
||||
Object var6;
|
||||
if (var4) {
|
||||
var6 = new ObjectNode(var0.readStringCp1252NullTerminated());
|
||||
} else {
|
||||
ClientPreferences.addGameMessage(99, "", "Roofs will only be removed selectively");
|
||||
var6 = new IntegerNode(var0.readInt());
|
||||
}
|
||||
|
||||
var1.put((Node)var6, (long)var5);
|
||||
}
|
||||
|
||||
if (var0.equalsIgnoreCase("displayfps")) {
|
||||
Client.displayFps = !Client.displayFps;
|
||||
return var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/lang/Throwable;I)Ljava/lang/String;",
|
||||
garbageValue = "-753208672"
|
||||
)
|
||||
static String method4393(Throwable var0) throws IOException {
|
||||
String var1;
|
||||
if (var0 instanceof RunException) {
|
||||
RunException var2 = (RunException)var0;
|
||||
var1 = var2.message + " | ";
|
||||
var0 = var2.throwable;
|
||||
} else {
|
||||
var1 = "";
|
||||
}
|
||||
|
||||
if (var0.equalsIgnoreCase("renderself")) {
|
||||
Client.renderSelf = !Client.renderSelf;
|
||||
}
|
||||
StringWriter var12 = new StringWriter();
|
||||
PrintWriter var3 = new PrintWriter(var12);
|
||||
var0.printStackTrace(var3);
|
||||
var3.close();
|
||||
String var4 = var12.toString();
|
||||
BufferedReader var5 = new BufferedReader(new StringReader(var4));
|
||||
String var6 = var5.readLine();
|
||||
|
||||
if (var0.equalsIgnoreCase("mouseovertext")) {
|
||||
Client.showMouseOverText = !Client.showMouseOverText;
|
||||
}
|
||||
while (true) {
|
||||
while (true) {
|
||||
String var7 = var5.readLine();
|
||||
if (var7 == null) {
|
||||
var1 = var1 + "| " + var6;
|
||||
return var1;
|
||||
}
|
||||
|
||||
if (Client.staffModLevel >= 2) {
|
||||
if (var0.equalsIgnoreCase("errortest")) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
int var8 = var7.indexOf(40);
|
||||
int var9 = var7.indexOf(41, var8 + 1);
|
||||
if (var8 >= 0 && var9 >= 0) {
|
||||
String var10 = var7.substring(var8 + 1, var9);
|
||||
int var11 = var10.indexOf(".java:");
|
||||
if (var11 >= 0) {
|
||||
var10 = var10.substring(0, var11) + var10.substring(var11 + 5);
|
||||
var1 = var1 + var10 + ' ';
|
||||
continue;
|
||||
}
|
||||
|
||||
if (var0.equalsIgnoreCase("showcoord")) {
|
||||
WorldMapIcon_0.worldMap.showCoord = !WorldMapIcon_0.worldMap.showCoord;
|
||||
}
|
||||
var7 = var7.substring(0, var8);
|
||||
}
|
||||
|
||||
if (var0.equalsIgnoreCase("fpson")) {
|
||||
Client.displayFps = true;
|
||||
}
|
||||
|
||||
if (var0.equalsIgnoreCase("fpsoff")) {
|
||||
Client.displayFps = false;
|
||||
}
|
||||
|
||||
if (var0.equalsIgnoreCase("gc")) {
|
||||
System.gc();
|
||||
}
|
||||
|
||||
if (var0.equalsIgnoreCase("clientdrop")) {
|
||||
WorldMapIcon_1.method308();
|
||||
var7 = var7.trim();
|
||||
var7 = var7.substring(var7.lastIndexOf(32) + 1);
|
||||
var7 = var7.substring(var7.lastIndexOf(9) + 1);
|
||||
var1 = var1 + var7 + ' ';
|
||||
}
|
||||
}
|
||||
|
||||
PacketBufferNode var1 = TilePaint.getPacketBufferNode(ClientPacket.field2270, Client.packetWriter.isaacCipher);
|
||||
var1.packetBuffer.writeByte(var0.length() + 1);
|
||||
var1.packetBuffer.writeStringCp1252NullTerminated(var0);
|
||||
Client.packetWriter.addNode(var1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user