project: Rev 204

This commit is contained in:
Owain van Brakel
2022-03-23 14:15:28 +01:00
parent 14d41dd9a4
commit 3834b46aee
532 changed files with 61751 additions and 59895 deletions

View File

@@ -4,38 +4,38 @@ import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("oh")
@ObfuscatedName("ow")
@Implements("DesktopPlatformInfoProvider")
public class DesktopPlatformInfoProvider implements PlatformInfoProvider {
@ObfuscatedName("e")
@ObfuscatedName("g")
@ObfuscatedGetter(
intValue = -926397731
intValue = -1948340117
)
int field4302;
@ObfuscatedName("r")
int field4413;
@ObfuscatedName("l")
@ObfuscatedGetter(
intValue = -602767679
intValue = -1586202977
)
int field4306;
@ObfuscatedName("o")
int field4416;
@ObfuscatedName("n")
@ObfuscatedGetter(
intValue = -1745727711
intValue = 2071888753
)
int field4307;
int field4415;
@ObfuscatedName("c")
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(I)Lom;",
garbageValue = "-1769654640"
descriptor = "(B)Lov;",
garbageValue = "0"
)
@Export("get")
public PlatformInfo get() {
byte var1;
if (ArchiveLoader.formattedOperatingSystemName.startsWith("win")) { // L: 16
if (Buffer.formattedOperatingSystemName.startsWith("win")) { // L: 16
var1 = 1;
} else if (ArchiveLoader.formattedOperatingSystemName.startsWith("mac")) { // L: 17
} else if (Buffer.formattedOperatingSystemName.startsWith("mac")) { // L: 17
var1 = 2;
} else if (ArchiveLoader.formattedOperatingSystemName.startsWith("linux")) { // L: 18
} else if (Buffer.formattedOperatingSystemName.startsWith("linux")) { // L: 18
var1 = 3;
} else {
var1 = 4; // L: 19
@@ -133,11 +133,11 @@ public class DesktopPlatformInfoProvider implements PlatformInfoProvider {
var8 = 4; // L: 75
}
this.method6839(var5); // L: 76
this.method7264(var5); // L: 76
boolean var9 = false; // L: 77
int var10 = (int)(Runtime.getRuntime().maxMemory() / 1048576L) + 1; // L: 78
int var11;
if (this.field4302 > 3) { // L: 81
if (this.field4413 > 3) { // L: 81
var11 = Runtime.getRuntime().availableProcessors();
} else {
var11 = 0; // L: 82
@@ -158,68 +158,55 @@ public class DesktopPlatformInfoProvider implements PlatformInfoProvider {
boolean var24 = false; // L: 95
String var25 = ""; // L: 96
boolean var26 = false; // L: 97
return new PlatformInfo(var1, var27, var7, var8, this.field4302, this.field4306, this.field4307, false, var10, var11, var12, 0, var13, var14, var15, var16, 0, 0, 0, 0, var17, var18, var23, 0, ""); // L: 98
return new PlatformInfo(var1, var27, var7, var8, this.field4413, this.field4416, this.field4415, false, var10, var11, var12, 0, var13, var14, var15, var16, 0, 0, 0, 0, var17, var18, var23, 0, ""); // L: 98
}
@ObfuscatedName("l")
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;I)V",
garbageValue = "-2146394274"
garbageValue = "-1017093968"
)
void method6839(String var1) {
void method7264(String var1) {
if (var1.startsWith("1.")) { // L: 102
this.method6837(var1); // L: 103
this.method7268(var1); // L: 103
} else {
this.method6851(var1); // L: 106
this.method7265(var1); // L: 106
}
} // L: 108
@ObfuscatedName("s")
@ObfuscatedName("h")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;B)V",
garbageValue = "-126"
descriptor = "(Ljava/lang/String;I)V",
garbageValue = "-494383958"
)
void method6837(String var1) {
void method7268(String var1) {
String[] var2 = var1.split("\\."); // L: 111
try {
this.field4302 = Integer.parseInt(var2[1]); // L: 113
this.field4413 = Integer.parseInt(var2[1]); // L: 113
var2 = var2[2].split("_"); // L: 114
this.field4306 = Integer.parseInt(var2[0]); // L: 115
this.field4307 = Integer.parseInt(var2[1]); // L: 116
this.field4416 = Integer.parseInt(var2[0]); // L: 115
this.field4415 = Integer.parseInt(var2[1]); // L: 116
} catch (Exception var4) { // L: 118
}
} // L: 119
@ObfuscatedName("e")
@ObfuscatedName("g")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;B)V",
garbageValue = "-6"
descriptor = "(Ljava/lang/String;I)V",
garbageValue = "1896923040"
)
void method6851(String var1) {
void method7265(String var1) {
String[] var2 = var1.split("\\."); // L: 122
try {
this.field4302 = Integer.parseInt(var2[0]); // L: 124
this.field4306 = Integer.parseInt(var2[1]); // L: 125
this.field4307 = Integer.parseInt(var2[2]); // L: 126
this.field4413 = Integer.parseInt(var2[0]); // L: 124
this.field4416 = Integer.parseInt(var2[1]); // L: 125
this.field4415 = Integer.parseInt(var2[2]); // L: 126
} catch (Exception var4) { // L: 128
}
} // L: 129
@ObfuscatedName("gc")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "-112579329"
)
static void method6847() {
PacketBufferNode var0 = class135.getPacketBufferNode(ClientPacket.field2865, Client.packetWriter.isaacCipher); // L: 4152
var0.packetBuffer.writeByte(class339.getWindowedMode()); // L: 4153
var0.packetBuffer.writeShort(DirectByteArrayCopier.canvasWidth); // L: 4154
var0.packetBuffer.writeShort(NPC.canvasHeight); // L: 4155
Client.packetWriter.addNode(var0); // L: 4156
} // L: 4157
}