rsclient: rev 191

This commit is contained in:
ThatGamerBlue
2020-08-26 21:11:23 +01:00
parent 106de31a9d
commit b6ea56781c
354 changed files with 61347 additions and 61083 deletions

View File

@@ -3,124 +3,110 @@ import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.Reflection;
@ObfuscatedName("kh")
@ObfuscatedName("kg")
@Implements("ByteArrayPool")
public class ByteArrayPool {
@ObfuscatedName("m")
@ObfuscatedName("z")
@ObfuscatedGetter(
intValue = -1047368171
intValue = -2025901059
)
@Export("ByteArrayPool_smallCount")
static int ByteArrayPool_smallCount;
@ObfuscatedName("o")
@ObfuscatedName("k")
@ObfuscatedGetter(
intValue = 404509009
intValue = -1213393185
)
@Export("ByteArrayPool_mediumCount")
static int ByteArrayPool_mediumCount;
@ObfuscatedName("q")
@ObfuscatedName("s")
@ObfuscatedGetter(
intValue = 294344847
intValue = 1641573055
)
@Export("ByteArrayPool_largeCount")
static int ByteArrayPool_largeCount;
@ObfuscatedName("j")
@ObfuscatedName("t")
@Export("ByteArrayPool_small")
static byte[][] ByteArrayPool_small;
@ObfuscatedName("p")
@ObfuscatedName("i")
@Export("ByteArrayPool_medium")
static byte[][] ByteArrayPool_medium;
@ObfuscatedName("g")
@ObfuscatedName("o")
@Export("ByteArrayPool_large")
static byte[][] ByteArrayPool_large;
@ObfuscatedName("x")
@Export("ByteArrayPool_alternativeSizes")
static int[] ByteArrayPool_alternativeSizes;
@ObfuscatedName("w")
@Export("ByteArrayPool_altSizeArrayCounts")
static int[] ByteArrayPool_altSizeArrayCounts;
@ObfuscatedName("g")
@Export("ByteArrayPool_arrays")
static byte[][][] ByteArrayPool_arrays;
@ObfuscatedName("cc")
@ObfuscatedSignature(
descriptor = "Lbo;"
)
@Export("mouseRecorder")
static MouseRecorder mouseRecorder;
static {
ByteArrayPool_smallCount = 0;
ByteArrayPool_mediumCount = 0;
ByteArrayPool_largeCount = 0;
ByteArrayPool_small = new byte[1000][];
ByteArrayPool_medium = new byte[250][];
ByteArrayPool_large = new byte[50][];
ByteArrayPool_smallCount = 0; // L: 4
ByteArrayPool_mediumCount = 0; // L: 5
ByteArrayPool_largeCount = 0; // L: 6
ByteArrayPool_small = new byte[1000][]; // L: 7
ByteArrayPool_medium = new byte[250][]; // L: 8
ByteArrayPool_large = new byte[50][]; // L: 9
}
@ObfuscatedName("o")
@ObfuscatedName("k")
@ObfuscatedSignature(
descriptor = "(IZI)[B",
garbageValue = "1801183295"
descriptor = "(IZB)[B",
garbageValue = "29"
)
@Export("ByteArrayPool_getArrayBool")
static synchronized byte[] ByteArrayPool_getArrayBool(int var0, boolean var1) {
byte[] var2;
if (var0 != 100) {
byte[] var4;
if (var0 != 100) { // L: 35
if (var0 < 100) {
}
} else if (ByteArrayPool_smallCount > 0) {
var2 = ByteArrayPool_small[--ByteArrayPool_smallCount];
ByteArrayPool_small[ByteArrayPool_smallCount] = null;
return var2;
var4 = ByteArrayPool_small[--ByteArrayPool_smallCount]; // L: 36
ByteArrayPool_small[ByteArrayPool_smallCount] = null; // L: 37
return var4; // L: 38
}
if (var0 != 5000) {
if (var0 != 5000) { // L: 40
if (var0 < 5000) {
}
} else if (ByteArrayPool_mediumCount > 0) {
var2 = ByteArrayPool_medium[--ByteArrayPool_mediumCount];
ByteArrayPool_medium[ByteArrayPool_mediumCount] = null;
return var2;
var4 = ByteArrayPool_medium[--ByteArrayPool_mediumCount]; // L: 41
ByteArrayPool_medium[ByteArrayPool_mediumCount] = null; // L: 42
return var4; // L: 43
}
if (var0 != 30000) {
if (var0 != 30000) { // L: 45
if (var0 < 30000) {
}
} else if (ByteArrayPool_largeCount > 0) {
var2 = ByteArrayPool_large[--ByteArrayPool_largeCount];
ByteArrayPool_large[ByteArrayPool_largeCount] = null;
return var2;
var4 = ByteArrayPool_large[--ByteArrayPool_largeCount]; // L: 46
ByteArrayPool_large[ByteArrayPool_largeCount] = null; // L: 47
return var4; // L: 48
}
if (Fonts.ByteArrayPool_arrays != null) {
for (int var4 = 0; var4 < ParamDefinition.ByteArrayPool_alternativeSizes.length; ++var4) {
if (ParamDefinition.ByteArrayPool_alternativeSizes[var4] != var0) {
if (var0 < ParamDefinition.ByteArrayPool_alternativeSizes[var4]) {
if (ByteArrayPool_arrays != null) { // L: 50
for (int var2 = 0; var2 < ByteArrayPool_alternativeSizes.length; ++var2) { // L: 51
if (ByteArrayPool_alternativeSizes[var2] != var0) { // L: 52
if (var0 < ByteArrayPool_alternativeSizes[var2]) {
}
} else if (VarbitDefinition.ByteArrayPool_altSizeArrayCounts[var4] > 0) {
byte[] var3 = Fonts.ByteArrayPool_arrays[var4][--VarbitDefinition.ByteArrayPool_altSizeArrayCounts[var4]];
Fonts.ByteArrayPool_arrays[var4][VarbitDefinition.ByteArrayPool_altSizeArrayCounts[var4]] = null;
return var3;
} else if (ByteArrayPool_altSizeArrayCounts[var2] > 0) {
byte[] var3 = ByteArrayPool_arrays[var2][--ByteArrayPool_altSizeArrayCounts[var2]]; // L: 53
ByteArrayPool_arrays[var2][ByteArrayPool_altSizeArrayCounts[var2]] = null; // L: 54
return var3; // L: 55
}
}
}
return new byte[var0];
}
@ObfuscatedName("p")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;B)Ljava/lang/Class;",
garbageValue = "28"
)
@Export("loadClassFromDescriptor")
static Class loadClassFromDescriptor(String var0) throws ClassNotFoundException {
if (var0.equals("B")) {
return Byte.TYPE;
} else if (var0.equals("I")) {
return Integer.TYPE;
} else if (var0.equals("S")) {
return Short.TYPE;
} else if (var0.equals("J")) {
return Long.TYPE;
} else if (var0.equals("Z")) {
return Boolean.TYPE;
} else if (var0.equals("F")) {
return Float.TYPE;
} else if (var0.equals("D")) {
return Double.TYPE;
} else if (var0.equals("C")) {
return Character.TYPE;
} else {
return var0.equals("void") ? Void.TYPE : Reflection.findClass(var0);
}
return new byte[var0]; // L: 68
}
}