update client to rev 183
This commit is contained in:
@@ -1,64 +1,56 @@
|
||||
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;
|
||||
|
||||
@ObfuscatedName("df")
|
||||
@ObfuscatedName("dk")
|
||||
@Implements("ViewportMouse")
|
||||
public class ViewportMouse {
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("c")
|
||||
@Export("ViewportMouse_isInViewport")
|
||||
public static boolean ViewportMouse_isInViewport;
|
||||
@ObfuscatedName("j")
|
||||
static boolean ViewportMouse_isInViewport;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1673614765
|
||||
intValue = 1996252149
|
||||
)
|
||||
@Export("ViewportMouse_x")
|
||||
static int ViewportMouse_x;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 97939103
|
||||
intValue = 755947551
|
||||
)
|
||||
@Export("ViewportMouse_y")
|
||||
static int ViewportMouse_y;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("g")
|
||||
@Export("ViewportMouse_false0")
|
||||
static boolean ViewportMouse_false0;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 214371075
|
||||
intValue = -1736158671
|
||||
)
|
||||
static int field1723;
|
||||
@ObfuscatedName("n")
|
||||
static int field1711;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -228881629
|
||||
intValue = 1750585749
|
||||
)
|
||||
static int field1724;
|
||||
@ObfuscatedName("q")
|
||||
static int field1712;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1565231911
|
||||
)
|
||||
static int field1725;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -942869669
|
||||
)
|
||||
static int field1726;
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 155548297
|
||||
)
|
||||
static int field1727;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1633088205
|
||||
intValue = 999378931
|
||||
)
|
||||
@Export("ViewportMouse_entityCount")
|
||||
public static int ViewportMouse_entityCount;
|
||||
static int ViewportMouse_entityCount;
|
||||
@ObfuscatedName("p")
|
||||
@Export("ViewportMouse_entityTags")
|
||||
public static long[] ViewportMouse_entityTags;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1855998549
|
||||
)
|
||||
@Export("cacheGamebuild")
|
||||
static int cacheGamebuild;
|
||||
|
||||
static {
|
||||
ViewportMouse_isInViewport = false;
|
||||
@@ -69,74 +61,248 @@ public class ViewportMouse {
|
||||
ViewportMouse_entityTags = new long[1000];
|
||||
}
|
||||
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BI)Ljava/lang/String;",
|
||||
garbageValue = "1521597342"
|
||||
signature = "(B)Z",
|
||||
garbageValue = "-77"
|
||||
)
|
||||
public static String method2902(byte[] var0) {
|
||||
return WorldMapSection0.method211(var0, 0, var0.length);
|
||||
}
|
||||
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)Lii;",
|
||||
garbageValue = "-1840851483"
|
||||
)
|
||||
@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));
|
||||
}
|
||||
|
||||
var1.postDecode();
|
||||
NPCDefinition.NpcDefinition_cached.put(var1, (long)var0);
|
||||
return var1;
|
||||
public static boolean method2957() {
|
||||
long var0 = SoundCache.method2480();
|
||||
int var2 = (int)(var0 - NetCache.field3145);
|
||||
NetCache.field3145 = var0;
|
||||
if (var2 > 200) {
|
||||
var2 = 200;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIII)Ljava/lang/String;",
|
||||
garbageValue = "810099755"
|
||||
)
|
||||
@Export("decodeStringCp1252")
|
||||
public static String decodeStringCp1252(byte[] var0, int var1, int var2) {
|
||||
char[] var3 = new char[var2];
|
||||
int var4 = 0;
|
||||
|
||||
for (int var5 = 0; var5 < var2; ++var5) {
|
||||
int var6 = var0[var5 + var1] & 255;
|
||||
if (var6 != 0) {
|
||||
if (var6 >= 128 && var6 < 160) {
|
||||
char var7 = class287.cp1252AsciiExtension[var6 - 128];
|
||||
if (var7 == 0) {
|
||||
var7 = '?';
|
||||
NetCache.NetCache_loadTime += var2;
|
||||
if (NetCache.NetCache_pendingResponsesCount == 0 && NetCache.NetCache_pendingPriorityResponsesCount == 0 && NetCache.NetCache_pendingWritesCount == 0 && NetCache.NetCache_pendingPriorityWritesCount == 0) {
|
||||
return true;
|
||||
} else if (NetCache.NetCache_socket == null) {
|
||||
return false;
|
||||
} else {
|
||||
try {
|
||||
if (NetCache.NetCache_loadTime > 30000) {
|
||||
throw new IOException();
|
||||
} else {
|
||||
NetFileRequest var3;
|
||||
Buffer var4;
|
||||
while (NetCache.NetCache_pendingPriorityResponsesCount < 200 && NetCache.NetCache_pendingPriorityWritesCount > 0) {
|
||||
var3 = (NetFileRequest)NetCache.NetCache_pendingPriorityWrites.first();
|
||||
var4 = new Buffer(4);
|
||||
var4.writeByte(1);
|
||||
var4.writeMedium((int)var3.key);
|
||||
NetCache.NetCache_socket.write(var4.array, 0, 4);
|
||||
NetCache.NetCache_pendingPriorityResponses.put(var3, var3.key);
|
||||
--NetCache.NetCache_pendingPriorityWritesCount;
|
||||
++NetCache.NetCache_pendingPriorityResponsesCount;
|
||||
}
|
||||
|
||||
var6 = var7;
|
||||
while (NetCache.NetCache_pendingResponsesCount < 200 && NetCache.NetCache_pendingWritesCount > 0) {
|
||||
var3 = (NetFileRequest)NetCache.NetCache_pendingWritesQueue.removeLast();
|
||||
var4 = new Buffer(4);
|
||||
var4.writeByte(0);
|
||||
var4.writeMedium((int)var3.key);
|
||||
NetCache.NetCache_socket.write(var4.array, 0, 4);
|
||||
var3.removeDual();
|
||||
NetCache.NetCache_pendingResponses.put(var3, var3.key);
|
||||
--NetCache.NetCache_pendingWritesCount;
|
||||
++NetCache.NetCache_pendingResponsesCount;
|
||||
}
|
||||
|
||||
for (int var15 = 0; var15 < 100; ++var15) {
|
||||
int var16 = NetCache.NetCache_socket.available();
|
||||
if (var16 < 0) {
|
||||
throw new IOException();
|
||||
}
|
||||
|
||||
if (var16 == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
NetCache.NetCache_loadTime = 0;
|
||||
byte var5 = 0;
|
||||
if (NetCache.NetCache_currentResponse == null) {
|
||||
var5 = 8;
|
||||
} else if (NetCache.field3154 == 0) {
|
||||
var5 = 1;
|
||||
}
|
||||
|
||||
int var6;
|
||||
int var7;
|
||||
int var8;
|
||||
int var10;
|
||||
byte[] var10000;
|
||||
int var10001;
|
||||
Buffer var22;
|
||||
if (var5 > 0) {
|
||||
var6 = var5 - NetCache.NetCache_responseHeaderBuffer.offset;
|
||||
if (var6 > var16) {
|
||||
var6 = var16;
|
||||
}
|
||||
|
||||
NetCache.NetCache_socket.read(NetCache.NetCache_responseHeaderBuffer.array, NetCache.NetCache_responseHeaderBuffer.offset, var6);
|
||||
if (NetCache.field3158 != 0) {
|
||||
for (var7 = 0; var7 < var6; ++var7) {
|
||||
var10000 = NetCache.NetCache_responseHeaderBuffer.array;
|
||||
var10001 = var7 + NetCache.NetCache_responseHeaderBuffer.offset;
|
||||
var10000[var10001] ^= NetCache.field3158;
|
||||
}
|
||||
}
|
||||
|
||||
var22 = NetCache.NetCache_responseHeaderBuffer;
|
||||
var22.offset += var6;
|
||||
if (NetCache.NetCache_responseHeaderBuffer.offset < var5) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (NetCache.NetCache_currentResponse == null) {
|
||||
NetCache.NetCache_responseHeaderBuffer.offset = 0;
|
||||
var7 = NetCache.NetCache_responseHeaderBuffer.readUnsignedByte();
|
||||
var8 = NetCache.NetCache_responseHeaderBuffer.readUnsignedShort();
|
||||
int var9 = NetCache.NetCache_responseHeaderBuffer.readUnsignedByte();
|
||||
var10 = NetCache.NetCache_responseHeaderBuffer.readInt();
|
||||
long var11 = (long)(var8 + (var7 << 16));
|
||||
NetFileRequest var13 = (NetFileRequest)NetCache.NetCache_pendingPriorityResponses.get(var11);
|
||||
NetCache.field3156 = true;
|
||||
if (var13 == null) {
|
||||
var13 = (NetFileRequest)NetCache.NetCache_pendingResponses.get(var11);
|
||||
NetCache.field3156 = false;
|
||||
}
|
||||
|
||||
if (var13 == null) {
|
||||
throw new IOException();
|
||||
}
|
||||
|
||||
int var14 = var9 == 0 ? 5 : 9;
|
||||
NetCache.NetCache_currentResponse = var13;
|
||||
class336.NetCache_responseArchiveBuffer = new Buffer(var10 + var14 + NetCache.NetCache_currentResponse.padding);
|
||||
class336.NetCache_responseArchiveBuffer.writeByte(var9);
|
||||
class336.NetCache_responseArchiveBuffer.writeInt(var10);
|
||||
NetCache.field3154 = 8;
|
||||
NetCache.NetCache_responseHeaderBuffer.offset = 0;
|
||||
} else if (NetCache.field3154 == 0) {
|
||||
if (NetCache.NetCache_responseHeaderBuffer.array[0] == -1) {
|
||||
NetCache.field3154 = 1;
|
||||
NetCache.NetCache_responseHeaderBuffer.offset = 0;
|
||||
} else {
|
||||
NetCache.NetCache_currentResponse = null;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var6 = class336.NetCache_responseArchiveBuffer.array.length - NetCache.NetCache_currentResponse.padding;
|
||||
var7 = 512 - NetCache.field3154;
|
||||
if (var7 > var6 - class336.NetCache_responseArchiveBuffer.offset) {
|
||||
var7 = var6 - class336.NetCache_responseArchiveBuffer.offset;
|
||||
}
|
||||
|
||||
if (var7 > var16) {
|
||||
var7 = var16;
|
||||
}
|
||||
|
||||
NetCache.NetCache_socket.read(class336.NetCache_responseArchiveBuffer.array, class336.NetCache_responseArchiveBuffer.offset, var7);
|
||||
if (NetCache.field3158 != 0) {
|
||||
for (var8 = 0; var8 < var7; ++var8) {
|
||||
var10000 = class336.NetCache_responseArchiveBuffer.array;
|
||||
var10001 = var8 + class336.NetCache_responseArchiveBuffer.offset;
|
||||
var10000[var10001] ^= NetCache.field3158;
|
||||
}
|
||||
}
|
||||
|
||||
var22 = class336.NetCache_responseArchiveBuffer;
|
||||
var22.offset += var7;
|
||||
NetCache.field3154 += var7;
|
||||
if (var6 == class336.NetCache_responseArchiveBuffer.offset) {
|
||||
if (NetCache.NetCache_currentResponse.key == 16711935L) {
|
||||
DevicePcmPlayerProvider.NetCache_reference = class336.NetCache_responseArchiveBuffer;
|
||||
|
||||
for (var8 = 0; var8 < 256; ++var8) {
|
||||
Archive var17 = NetCache.NetCache_archives[var8];
|
||||
if (var17 != null) {
|
||||
DevicePcmPlayerProvider.NetCache_reference.offset = var8 * 8 + 5;
|
||||
var10 = DevicePcmPlayerProvider.NetCache_reference.readInt();
|
||||
int var18 = DevicePcmPlayerProvider.NetCache_reference.readInt();
|
||||
var17.loadIndex(var10, var18);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
NetCache.NetCache_crc.reset();
|
||||
NetCache.NetCache_crc.update(class336.NetCache_responseArchiveBuffer.array, 0, var6);
|
||||
var8 = (int)NetCache.NetCache_crc.getValue();
|
||||
if (var8 != NetCache.NetCache_currentResponse.crc) {
|
||||
try {
|
||||
NetCache.NetCache_socket.close();
|
||||
} catch (Exception var20) {
|
||||
}
|
||||
|
||||
++NetCache.NetCache_crcMismatches;
|
||||
NetCache.NetCache_socket = null;
|
||||
NetCache.field3158 = (byte)((int)(Math.random() * 255.0D + 1.0D));
|
||||
return false;
|
||||
}
|
||||
|
||||
NetCache.NetCache_crcMismatches = 0;
|
||||
NetCache.NetCache_ioExceptions = 0;
|
||||
NetCache.NetCache_currentResponse.archive.write((int)(NetCache.NetCache_currentResponse.key & 65535L), class336.NetCache_responseArchiveBuffer.array, (NetCache.NetCache_currentResponse.key & 16711680L) == 16711680L, NetCache.field3156);
|
||||
}
|
||||
|
||||
NetCache.NetCache_currentResponse.remove();
|
||||
if (NetCache.field3156) {
|
||||
--NetCache.NetCache_pendingPriorityResponsesCount;
|
||||
} else {
|
||||
--NetCache.NetCache_pendingResponsesCount;
|
||||
}
|
||||
|
||||
NetCache.field3154 = 0;
|
||||
NetCache.NetCache_currentResponse = null;
|
||||
class336.NetCache_responseArchiveBuffer = null;
|
||||
} else {
|
||||
if (NetCache.field3154 != 512) {
|
||||
break;
|
||||
}
|
||||
|
||||
NetCache.field3154 = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
} catch (IOException var21) {
|
||||
try {
|
||||
NetCache.NetCache_socket.close();
|
||||
} catch (Exception var19) {
|
||||
}
|
||||
|
||||
var3[var4++] = (char)var6;
|
||||
++NetCache.NetCache_ioExceptions;
|
||||
NetCache.NetCache_socket = null;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BILjava/lang/CharSequence;I)I",
|
||||
garbageValue = "-27737666"
|
||||
)
|
||||
public static int method2956(byte[] var0, int var1, CharSequence var2) {
|
||||
int var3 = var2.length();
|
||||
int var4 = var1;
|
||||
|
||||
for (int var5 = 0; var5 < var3; ++var5) {
|
||||
char var6 = var2.charAt(var5);
|
||||
if (var6 <= 127) {
|
||||
var0[var4++] = (byte)var6;
|
||||
} else if (var6 <= 2047) {
|
||||
var0[var4++] = (byte)(192 | var6 >> 6);
|
||||
var0[var4++] = (byte)(128 | var6 & '?');
|
||||
} else {
|
||||
var0[var4++] = (byte)(224 | var6 >> '\f');
|
||||
var0[var4++] = (byte)(128 | var6 >> 6 & 63);
|
||||
var0[var4++] = (byte)(128 | var6 & '?');
|
||||
}
|
||||
}
|
||||
|
||||
return new String(var3, 0, var4);
|
||||
}
|
||||
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lct;B)V",
|
||||
garbageValue = "16"
|
||||
)
|
||||
public static final void method2891(PcmPlayerProvider var0) {
|
||||
SecureRandomCallable.pcmPlayerProvider = var0;
|
||||
return var4 - var1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user