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

@@ -1,45 +1,49 @@
import java.util.Iterator;
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("kt")
@ObfuscatedName("kz")
@Implements("ByteArrayPool")
public class ByteArrayPool {
@ObfuscatedName("z")
@ObfuscatedName("a")
@ObfuscatedGetter(
intValue = 1085109787
intValue = -261452537
)
@Export("ByteArrayPool_smallCount")
static int ByteArrayPool_smallCount;
@ObfuscatedName("n")
@ObfuscatedName("t")
@ObfuscatedGetter(
intValue = -745592959
intValue = -718717257
)
@Export("ByteArrayPool_mediumCount")
static int ByteArrayPool_mediumCount;
@ObfuscatedName("v")
@ObfuscatedName("n")
@ObfuscatedGetter(
intValue = 1171490501
intValue = -1909793595
)
@Export("ByteArrayPool_largeCount")
static int ByteArrayPool_largeCount;
@ObfuscatedName("u")
@ObfuscatedName("q")
@Export("ByteArrayPool_small")
static byte[][] ByteArrayPool_small;
@ObfuscatedName("r")
@ObfuscatedName("v")
@Export("ByteArrayPool_medium")
static byte[][] ByteArrayPool_medium;
@ObfuscatedName("p")
@ObfuscatedName("l")
@Export("ByteArrayPool_large")
static byte[][] ByteArrayPool_large;
@ObfuscatedName("q")
@ObfuscatedName("c")
@Export("ByteArrayPool_alternativeSizes")
public static int[] ByteArrayPool_alternativeSizes;
@ObfuscatedName("m")
@Export("ByteArrayPool_altSizeArrayCounts")
public static int[] ByteArrayPool_altSizeArrayCounts;
static int[] ByteArrayPool_alternativeSizes;
@ObfuscatedName("h")
@ObfuscatedSignature(
signature = "Ldm;"
)
@Export("soundCache")
public static SoundCache soundCache;
static {
ByteArrayPool_smallCount = 0;
@@ -50,10 +54,10 @@ public class ByteArrayPool {
ByteArrayPool_large = new byte[50][];
}
@ObfuscatedName("z")
@ObfuscatedName("t")
@ObfuscatedSignature(
signature = "(IZB)[B",
garbageValue = "-44"
signature = "(IZI)[B",
garbageValue = "77699142"
)
@Export("ByteArrayPool_getArrayBool")
static synchronized byte[] ByteArrayPool_getArrayBool(int var0, boolean var1) {
@@ -85,14 +89,14 @@ public class ByteArrayPool {
return var2;
}
if (class81.ByteArrayPool_arrays != null) {
if (HorizontalAlignment.ByteArrayPool_arrays != null) {
for (int var4 = 0; var4 < ByteArrayPool_alternativeSizes.length; ++var4) {
if (ByteArrayPool_alternativeSizes[var4] != var0) {
if (var0 < ByteArrayPool_alternativeSizes[var4]) {
}
} else if (ByteArrayPool_altSizeArrayCounts[var4] > 0) {
byte[] var3 = class81.ByteArrayPool_arrays[var4][--ByteArrayPool_altSizeArrayCounts[var4]];
class81.ByteArrayPool_arrays[var4][ByteArrayPool_altSizeArrayCounts[var4]] = null;
} else if (class222.ByteArrayPool_altSizeArrayCounts[var4] > 0) {
byte[] var3 = HorizontalAlignment.ByteArrayPool_arrays[var4][--class222.ByteArrayPool_altSizeArrayCounts[var4]];
HorizontalAlignment.ByteArrayPool_arrays[var4][class222.ByteArrayPool_altSizeArrayCounts[var4]] = null;
return var3;
}
}
@@ -100,4 +104,46 @@ public class ByteArrayPool {
return new byte[var0];
}
@ObfuscatedName("t")
@ObfuscatedSignature(
signature = "(Ljava/lang/Throwable;Ljava/lang/String;)Lmf;"
)
@Export("newRunException")
public static RunException newRunException(Throwable var0, String var1) {
RunException var2;
if (var0 instanceof RunException) {
var2 = (RunException)var0;
var2.message = var2.message + ' ' + var1;
} else {
var2 = new RunException(var0, var1);
}
return var2;
}
@ObfuscatedName("ke")
@ObfuscatedSignature(
signature = "(I)V",
garbageValue = "-1348959879"
)
@Export("FriendSystem_invalidateFriends")
static final void FriendSystem_invalidateFriends() {
for (int var0 = 0; var0 < Players.Players_count; ++var0) {
Player var1 = Client.players[Players.Players_indices[var0]];
var1.clearIsFriend();
}
Iterator var2 = Messages.Messages_hashTable.iterator();
while (var2.hasNext()) {
Message var3 = (Message)var2.next();
var3.clearIsFromFriend();
}
if (class4.clanChat != null) {
class4.clanChat.clearFriends();
}
}
}