project: Rev 182

This commit is contained in:
Owain van Brakel
2019-08-29 16:04:20 +02:00
parent 0c1dd644d8
commit 6485eb9bed
349 changed files with 51857 additions and 50740 deletions

View File

@@ -2,71 +2,124 @@ import javax.imageio.ImageIO;
import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
@ObfuscatedName("ay")
@ObfuscatedName("ab")
public class class49 {
@ObfuscatedName("r")
@Export("Tiles_hueMultiplier")
static int[] Tiles_hueMultiplier;
static {
ImageIO.setUseCache(false);
}
@ObfuscatedName("e")
@ObfuscatedName("s")
@ObfuscatedSignature(
signature = "(S)V",
garbageValue = "135"
signature = "(I)V",
garbageValue = "-1821509751"
)
static void method815() {
if (Login.Login_username != null && Login.Login_username.length() > 0) {
return;
static void method810() {
for (ObjectSound var0 = (ObjectSound)ObjectSound.objectSounds.last(); var0 != null; var0 = (ObjectSound)ObjectSound.objectSounds.previous()) {
if (var0.obj != null) {
var0.set();
}
}
if (WorldMapLabelSize.clientPreferences.rememberedUsername != null) {
Login.Login_username = WorldMapLabelSize.clientPreferences.rememberedUsername;
Client.Login_isUsernameRemembered = true;
}
@ObfuscatedName("ar")
@ObfuscatedSignature(
signature = "(ILcr;ZI)I",
garbageValue = "1937427319"
)
static int method811(int var0, Script var1, boolean var2) {
if (var0 == ScriptOpcodes.VIEWPORT_SETFOV) {
Interpreter.Interpreter_intStackSize -= 2;
Client.field873 = (short)BZip2State.method5664(Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize]);
if (Client.field873 <= 0) {
Client.field873 = 256;
}
Client.field822 = (short)BZip2State.method5664(Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]);
if (Client.field822 <= 0) {
Client.field822 = 256;
}
return 1;
} else if (var0 == ScriptOpcodes.VIEWPORT_SETZOOM) {
Interpreter.Interpreter_intStackSize -= 2;
Client.zoomHeight = (short)Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
if (Client.zoomHeight <= 0) {
Client.zoomHeight = 256;
}
Client.zoomWidth = (short)Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1];
if (Client.zoomWidth <= 0) {
Client.zoomWidth = 320;
}
return 1;
} else if (var0 == ScriptOpcodes.VIEWPORT_CLAMPFOV) {
Interpreter.Interpreter_intStackSize -= 4;
Client.field795 = (short)Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
if (Client.field795 <= 0) {
Client.field795 = 1;
}
Client.field661 = (short)Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1];
if (Client.field661 <= 0) {
Client.field661 = 32767;
} else if (Client.field661 < Client.field795) {
Client.field661 = Client.field795;
}
Client.field652 = (short)Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 2];
if (Client.field652 <= 0) {
Client.field652 = 1;
}
Client.field791 = (short)Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 3];
if (Client.field791 <= 0) {
Client.field791 = 32767;
} else if (Client.field791 < Client.field652) {
Client.field791 = Client.field652;
}
return 1;
} else if (var0 == ScriptOpcodes.VIEWPORT_GETEFFECTIVESIZE) {
if (Client.viewportWidget != null) {
LoginScreenAnimation.setViewportShape(0, 0, Client.viewportWidget.width, Client.viewportWidget.height, false);
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Client.viewportWidth;
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Client.viewportHeight;
} else {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
}
return 1;
} else if (var0 == ScriptOpcodes.VIEWPORT_GETZOOM) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Client.zoomHeight;
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Client.zoomWidth;
return 1;
} else if (var0 == ScriptOpcodes.VIEWPORT_GETFOV) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = ChatChannel.method2165(Client.field873);
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = ChatChannel.method2165(Client.field822);
return 1;
} else if (var0 == 6220) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
return 1;
} else if (var0 == 6221) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
return 1;
} else if (var0 == 6222) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = KitDefinition.canvasWidth;
return 1;
} else if (var0 == 6223) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = class30.canvasHeight;
return 1;
} else {
Client.Login_isUsernameRemembered = false;
return 2;
}
}
@ObfuscatedName("e")
@ObfuscatedSignature(
signature = "(IIB)Lcx;",
garbageValue = "3"
)
@Export("getWorldMapScript")
static Script getWorldMapScript(int var0, int var1) {
Script var2 = (Script)Script.Script_cached.get((long)(var0 << 16));
if (var2 != null) {
return var2;
}
String var3 = String.valueOf(var0);
int var4 = UserComparator4.archive12.getGroupId(var3);
if (var4 == -1) {
return null;
}
byte[] var5 = UserComparator4.archive12.takeFileFlat(var4);
if (var5 == null) {
return null;
}
if (var5.length <= 1) {
return null;
}
var2 = World.newScript(var5);
if (var2 != null) {
Script.Script_cached.put(var2, (long)(var0 << 16));
return var2;
}
return null;
}
@ObfuscatedName("u")
@ObfuscatedSignature(
signature = "(CS)Z",
garbageValue = "8230"
)
@Export("isDigit")
public static boolean isDigit(char var0) {
return var0 >= '0' && var0 <= '9';
}
}