project: Revvvvvvvvvvvvv

This commit is contained in:
Owain van Brakel
2022-02-09 13:21:03 +01:00
parent e91fc1a16a
commit e505012bff
474 changed files with 69930 additions and 69430 deletions

View File

@@ -6,23 +6,34 @@ import javax.net.ssl.HandshakeCompletedListener;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocket;
import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
import org.bouncycastle.crypto.tls.TlsClientProtocol;
@ObfuscatedName("d")
@ObfuscatedName("h")
class class12 extends SSLSocket {
@ObfuscatedName("i")
@Export("BZip2Decompressor_block")
static int[] BZip2Decompressor_block;
@ObfuscatedName("dj")
static boolean field72;
@ObfuscatedName("sk")
@ObfuscatedGetter(
intValue = -536820815
)
static int field75;
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "Lkq;"
)
@Export("ObjectDefinition_archive")
static AbstractArchive ObjectDefinition_archive;
@ObfuscatedName("n")
@ObfuscatedGetter(
intValue = 708907497
)
static int field74;
@ObfuscatedName("c")
Certificate[] field67;
Certificate[] field71;
// $FF: synthetic field
@ObfuscatedSignature(
descriptor = "Le;"
descriptor = "Lp;"
)
final class15 this$0;
// $FF: synthetic field
@@ -31,299 +42,152 @@ class class12 extends SSLSocket {
final String val$host;
@ObfuscatedSignature(
descriptor = "(Le;Lorg/bouncycastle/crypto/tls/TlsClientProtocol;Ljava/lang/String;)V"
descriptor = "(Lp;Lorg/bouncycastle/crypto/tls/TlsClientProtocol;Ljava/lang/String;)V"
)
class12(class15 var1, TlsClientProtocol var2, String var3) {
this.this$0 = var1;
this.this$0 = var1; // L: 90
this.val$tlsClientProtocol = var2;
this.val$host = var3;
}
public void removeHandshakeCompletedListener(HandshakeCompletedListener var1) {
}
public String[] getSupportedCipherSuites() {
return null;
}
public String[] getEnabledProtocols() {
return null;
}
public boolean getNeedClientAuth() {
return false;
}
public SSLSession getSession() {
return new class17(this);
}
public String[] getSupportedProtocols() {
return null;
}
public void setEnabledCipherSuites(String[] var1) {
}
public boolean getWantClientAuth() {
return false;
}
public void setWantClientAuth(boolean var1) {
}
public void startHandshake() throws IOException {
this.val$tlsClientProtocol.connect(new class13(this));
}
public void setNeedClientAuth(boolean var1) {
}
public InputStream getInputStream() throws IOException {
return this.val$tlsClientProtocol.getInputStream();
}
public void setEnabledProtocols(String[] var1) {
return null; // L: 248
}
public OutputStream getOutputStream() throws IOException {
return this.val$tlsClientProtocol.getOutputStream();
}
public boolean getEnableSessionCreation() {
return false;
}
public void addHandshakeCompletedListener(HandshakeCompletedListener var1) {
}
public String[] getEnabledCipherSuites() {
return null;
}
public void setEnableSessionCreation(boolean var1) {
}
public boolean getUseClientMode() {
return false;
return this.val$tlsClientProtocol.getOutputStream(); // L: 100
}
public synchronized void close() throws IOException {
this.val$tlsClientProtocol.close();
this.val$tlsClientProtocol.close(); // L: 105
} // L: 106
public void addHandshakeCompletedListener(HandshakeCompletedListener var1) {
} // L: 109
public boolean getEnableSessionCreation() {
return false; // L: 113
}
public String[] getEnabledCipherSuites() {
return null; // L: 118
}
public String[] getEnabledProtocols() {
return null; // L: 123
}
public boolean getNeedClientAuth() {
return false; // L: 128
}
public boolean getUseClientMode() {
return false; // L: 253
}
public boolean getWantClientAuth() {
return false; // L: 258
}
public void removeHandshakeCompletedListener(HandshakeCompletedListener var1) {
} // L: 262
public void setEnabledCipherSuites(String[] var1) {
} // L: 268
public void setEnabledProtocols(String[] var1) {
} // L: 271
public void setNeedClientAuth(boolean var1) {
} // L: 274
public void setUseClientMode(boolean var1) {
} // L: 277
public void startHandshake() throws IOException {
this.val$tlsClientProtocol.connect(new class13(this)); // L: 284
} // L: 334
public void setWantClientAuth(boolean var1) {
} // L: 280
public SSLSession getSession() {
return new class17(this); // L: 133
}
@ObfuscatedName("c")
public InputStream getInputStream() throws IOException {
return this.val$tlsClientProtocol.getInputStream(); // L: 95
}
public String[] getSupportedProtocols() {
return null; // L: 243
}
public void setEnableSessionCreation(boolean var1) {
} // L: 265
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "(III)I",
garbageValue = "392889295"
descriptor = "(Ljava/lang/Float;Ljava/lang/Float;I)V",
garbageValue = "-1321795090"
)
static int method189(int var0, int var1) {
ItemContainer var2 = (ItemContainer)ItemContainer.itemContainers.get((long)var0);
if (var2 == null) {
return -1;
} else {
return var1 >= 0 && var1 < var2.ids.length ? var2.ids[var1] : -1;
}
}
@ObfuscatedName("b")
@ObfuscatedSignature(
descriptor = "(Loz;III)I",
garbageValue = "-1062038297"
)
static int method158(IterableNodeHashTable var0, int var1, int var2) {
if (var0 == null) {
return var2;
} else {
IntegerNode var3 = (IntegerNode)var0.get((long)var1);
return var3 == null ? var2 : var3.integer;
}
}
@ObfuscatedName("w")
static boolean method188(long var0) {
return (int)(var0 >>> 16 & 1L) == 1;
}
@ObfuscatedName("z")
@ObfuscatedSignature(
descriptor = "(ILbn;ZB)I",
garbageValue = "122"
)
static int method190(int var0, Script var1, boolean var2) {
if (var0 == ScriptOpcodes.CLIENTCLOCK) {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.cycle;
return 1;
} else {
int var3;
int var4;
if (var0 == ScriptOpcodes.INV_GETOBJ) {
IsaacCipher.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = method189(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.INV_GETNUM) {
IsaacCipher.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = ReflectionCheck.ItemContainer_getCount(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.INV_TOTAL) {
IsaacCipher.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = MouseRecorder.method2160(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.INV_SIZE) {
var3 = Interpreter.Interpreter_intStack[--IsaacCipher.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = class78.getInvDefinition(var3).size;
return 1;
} else if (var0 == ScriptOpcodes.STAT) {
var3 = Interpreter.Interpreter_intStack[--IsaacCipher.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.currentLevels[var3];
return 1;
} else if (var0 == ScriptOpcodes.STAT_BASE) {
var3 = Interpreter.Interpreter_intStack[--IsaacCipher.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.levels[var3];
return 1;
} else if (var0 == ScriptOpcodes.STAT_XP) {
var3 = Interpreter.Interpreter_intStack[--IsaacCipher.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.experience[var3];
return 1;
static void method155(Float var0, Float var1) {
if (var0 + class112.field1386 < 1.3333334F) { // L: 297
float var2 = var0 - 2.0F; // L: 298
float var3 = var0 - 1.0F; // L: 299
float var4 = (float)Math.sqrt((double)(var2 * var2 - 4.0F * var3 * var3)); // L: 300
float var5 = (var4 + -var2) * 0.5F; // L: 301
if (var1 + class112.field1386 > var5) { // L: 302
var1 = var5 - class112.field1386; // L: 303
} else {
int var5;
if (var0 == ScriptOpcodes.COORD) {
var3 = class20.Client_plane;
var4 = (class340.localPlayer.x >> 7) + class131.baseX;
var5 = (class340.localPlayer.y >> 7) + TileItem.baseY;
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = (var4 << 14) + var5 + (var3 << 28);
return 1;
} else if (var0 == ScriptOpcodes.COORDX) {
var3 = Interpreter.Interpreter_intStack[--IsaacCipher.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = var3 >> 14 & 16383;
return 1;
} else if (var0 == ScriptOpcodes.COORDZ) {
var3 = Interpreter.Interpreter_intStack[--IsaacCipher.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = var3 >> 28;
return 1;
} else if (var0 == ScriptOpcodes.COORDY) {
var3 = Interpreter.Interpreter_intStack[--IsaacCipher.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = var3 & 16383;
return 1;
} else if (var0 == ScriptOpcodes.MAP_MEMBERS) {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.isMembersWorld ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.INVOTHER_GETOBJ) {
IsaacCipher.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize] + 32768;
var4 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = method189(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.INVOTHER_GETNUM) {
IsaacCipher.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize] + 32768;
var4 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = ReflectionCheck.ItemContainer_getCount(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.INVOTHER_TOTAL) {
IsaacCipher.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize] + 32768;
var4 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = MouseRecorder.method2160(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.STAFFMODLEVEL) {
if (Client.staffModLevel >= 2) {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.staffModLevel;
} else {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.REBOOTTIMER) {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.rebootTimer;
return 1;
} else if (var0 == ScriptOpcodes.MAP_WORLD) {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.worldId;
return 1;
} else if (var0 == ScriptOpcodes.RUNENERGY_VISIBLE) {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.runEnergy;
return 1;
} else if (var0 == ScriptOpcodes.RUNWEIGHT_VISIBLE) {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.weight;
return 1;
} else if (var0 == ScriptOpcodes.PLAYERMOD) {
if (Client.playerMod) {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = 1;
} else {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.WORLDFLAGS) {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.worldProperties;
return 1;
} else if (var0 == ScriptOpcodes.MOVECOORD) {
IsaacCipher.Interpreter_intStackSize -= 4;
var3 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize + 1];
var5 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize + 2];
int var6 = Interpreter.Interpreter_intStack[IsaacCipher.Interpreter_intStackSize + 3];
var3 += var4 << 14;
var3 += var5 << 28;
var3 += var6;
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = var3;
return 1;
} else if (var0 == 3326) {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.field483;
return 1;
} else if (var0 == 3327) {
Interpreter.Interpreter_intStack[++IsaacCipher.Interpreter_intStackSize - 1] = Client.field746;
return 1;
} else {
return 2;
var5 = 0.5F * (-var2 - var4); // L: 306
if (var1 < class112.field1386 + var5) { // L: 307
var1 = var5 + class112.field1386; // L: 308
}
}
}
}
@ObfuscatedName("jp")
@ObfuscatedSignature(
descriptor = "(IIIIIIIIB)V",
garbageValue = "60"
)
@Export("drawWidgets")
static final void drawWidgets(int var0, int var1, int var2, int var3, int var4, int var5, int var6, int var7) {
if (class242.loadInterface(var0)) {
BufferedFile.field4430 = null;
class118.drawInterface(MouseRecorder.Widget_interfaceComponents[var0], -1, var1, var2, var3, var4, var5, var6, var7);
if (BufferedFile.field4430 != null) {
class118.drawInterface(BufferedFile.field4430, -1412584499, var1, var2, var3, var4, HitSplatDefinition.field1945, class78.field1000, var7);
BufferedFile.field4430 = null;
}
} else {
if (var7 != -1) {
Client.field504[var7] = true;
} else {
for (int var8 = 0; var8 < 100; ++var8) {
Client.field504[var8] = true;
}
}
var0 = 1.3333334F - class112.field1386; // L: 313
var1 = 0.33333334F - class112.field1386; // L: 314
}
}
@ObfuscatedName("jm")
} // L: 316
@ObfuscatedName("p")
@ObfuscatedSignature(
descriptor = "(ZI)V",
garbageValue = "1583315903"
descriptor = "(Ljava/lang/String;IB)V",
garbageValue = "-3"
)
@Export("setTapToDrop")
static void setTapToDrop(boolean var0) {
Client.tapToDrop = var0;
}
static final void method158(String var0, int var1) {
PacketBufferNode var2 = class135.getPacketBufferNode(ClientPacket.field2907, Client.packetWriter.isaacCipher); // L: 222
var2.packetBuffer.writeByte(GrandExchangeEvents.stringCp1252NullTerminatedByteSize(var0) + 1); // L: 223
var2.packetBuffer.writeStringCp1252NullTerminated(var0); // L: 224
var2.packetBuffer.writeByte(var1); // L: 225
Client.packetWriter.addNode(var2); // L: 226
} // L: 227
@ObfuscatedName("km")
@ObfuscatedSignature(
descriptor = "(IIIILpt;Ljq;I)V",
garbageValue = "-178422566"
)
@Export("worldToMinimap")
static final void worldToMinimap(int var0, int var1, int var2, int var3, SpritePixels var4, SpriteMask var5) {
int var6 = var3 * var3 + var2 * var2; // L: 11842
if (var6 > 4225 && var6 < 90000) { // L: 11843
int var7 = Client.camAngleY & 2047; // L: 11844
int var8 = Rasterizer3D.Rasterizer3D_sine[var7]; // L: 11845
int var9 = Rasterizer3D.Rasterizer3D_cosine[var7]; // L: 11846
int var10 = var9 * var2 + var3 * var8 >> 16; // L: 11847
int var11 = var3 * var9 - var8 * var2 >> 16; // L: 11848
double var12 = Math.atan2((double)var10, (double)var11); // L: 11849
int var14 = var5.width / 2 - 25; // L: 11850
int var15 = (int)(Math.sin(var12) * (double)var14); // L: 11851
int var16 = (int)(Math.cos(var12) * (double)var14); // L: 11852
byte var17 = 20; // L: 11853
class78.redHintArrowSprite.method7801(var15 + (var0 + var5.width / 2 - var17 / 2), var5.height / 2 + var1 - var17 / 2 - var16 - 10, var17, var17, 15, 15, var12, 256); // L: 11854
} else {
Interpreter.drawSpriteOnMinimap(var0, var1, var2, var3, var4, var5); // L: 11856
}
} // L: 11857
}