chore: rev 190
This commit is contained in:
@@ -9,66 +9,72 @@ import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("fa")
|
||||
@ObfuscatedName("fh")
|
||||
@Implements("NetSocket")
|
||||
public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("st")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lcz;"
|
||||
)
|
||||
@Export("clientPreferences")
|
||||
static ClientPreferences clientPreferences;
|
||||
@ObfuscatedName("m")
|
||||
@Export("inputStream")
|
||||
InputStream inputStream;
|
||||
@ObfuscatedName("m")
|
||||
@Export("outputStream")
|
||||
OutputStream outputStream;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("o")
|
||||
@Export("socket")
|
||||
Socket socket;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("q")
|
||||
@Export("outputStream")
|
||||
OutputStream outputStream;
|
||||
@ObfuscatedName("j")
|
||||
@Export("isClosed")
|
||||
boolean isClosed;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lfs;"
|
||||
signature = "Lfm;"
|
||||
)
|
||||
@Export("taskHandler")
|
||||
TaskHandler taskHandler;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lfr;"
|
||||
signature = "Lfa;"
|
||||
)
|
||||
@Export("task")
|
||||
Task task;
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("n")
|
||||
@Export("outBuffer")
|
||||
byte[] outBuffer;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -883377573
|
||||
intValue = -1562381729
|
||||
)
|
||||
@Export("outLength")
|
||||
int outLength;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1663813013
|
||||
intValue = -171573129
|
||||
)
|
||||
@Export("outOffset")
|
||||
int outOffset;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("z")
|
||||
@Export("exceptionWriting")
|
||||
boolean exceptionWriting;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -667900149
|
||||
intValue = -881465833
|
||||
)
|
||||
@Export("bufferLength")
|
||||
final int bufferLength;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1103298859
|
||||
intValue = -1622692111
|
||||
)
|
||||
@Export("maxPacketLength")
|
||||
final int maxPacketLength;
|
||||
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/net/Socket;Lfs;I)V"
|
||||
signature = "(Ljava/net/Socket;Lfm;I)V"
|
||||
)
|
||||
public NetSocket(Socket var1, TaskHandler var2, int var3) throws IOException {
|
||||
this.isClosed = false;
|
||||
@@ -87,10 +93,10 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
this.outputStream = this.socket.getOutputStream();
|
||||
}
|
||||
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "7"
|
||||
signature = "(I)V",
|
||||
garbageValue = "-768493590"
|
||||
)
|
||||
@Export("close")
|
||||
public void close() {
|
||||
@@ -102,7 +108,7 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
|
||||
if (this.task != null) {
|
||||
while (this.task.status == 0) {
|
||||
class169.sleepExact(1L);
|
||||
SpriteMask.sleepExact(1L);
|
||||
}
|
||||
|
||||
if (this.task.status == 1) {
|
||||
@@ -117,30 +123,30 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)I",
|
||||
garbageValue = "1436175029"
|
||||
signature = "(B)I",
|
||||
garbageValue = "-8"
|
||||
)
|
||||
@Export("readUnsignedByte")
|
||||
public int readUnsignedByte() throws IOException {
|
||||
return this.isClosed ? 0 : this.inputStream.read();
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)I",
|
||||
garbageValue = "195119972"
|
||||
garbageValue = "-1942767880"
|
||||
)
|
||||
@Export("available")
|
||||
public int available() throws IOException {
|
||||
return this.isClosed ? 0 : this.inputStream.available();
|
||||
}
|
||||
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IB)Z",
|
||||
garbageValue = "0"
|
||||
signature = "(II)Z",
|
||||
garbageValue = "1355091335"
|
||||
)
|
||||
@Export("isAvailable")
|
||||
public boolean isAvailable(int var1) throws IOException {
|
||||
@@ -151,10 +157,10 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIIB)I",
|
||||
garbageValue = "33"
|
||||
garbageValue = "37"
|
||||
)
|
||||
@Export("read")
|
||||
public int read(byte[] var1, int var2, int var3) throws IOException {
|
||||
@@ -176,10 +182,10 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIIB)V",
|
||||
garbageValue = "-21"
|
||||
signature = "([BIII)V",
|
||||
garbageValue = "-950578253"
|
||||
)
|
||||
@Export("write0")
|
||||
void write0(byte[] var1, int var2, int var3) throws IOException {
|
||||
@@ -196,7 +202,7 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
for (int var5 = 0; var5 < var3; ++var5) {
|
||||
this.outBuffer[this.outOffset] = var1[var5 + var2];
|
||||
this.outOffset = (this.outOffset + 1) % this.bufferLength;
|
||||
if ((this.outLength + this.maxPacketLength) % this.bufferLength == this.outOffset) {
|
||||
if ((this.maxPacketLength + this.outLength) % this.bufferLength == this.outOffset) {
|
||||
throw new IOException();
|
||||
}
|
||||
}
|
||||
@@ -211,10 +217,10 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIII)V",
|
||||
garbageValue = "-2040746201"
|
||||
signature = "([BIIB)V",
|
||||
garbageValue = "-105"
|
||||
)
|
||||
@Export("write")
|
||||
public void write(byte[] var1, int var2, int var3) throws IOException {
|
||||
@@ -232,7 +238,7 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
int var1;
|
||||
int var2;
|
||||
synchronized(this) {
|
||||
if (this.outOffset == this.outLength) {
|
||||
if (this.outLength == this.outOffset) {
|
||||
if (this.isClosed) {
|
||||
break label84;
|
||||
}
|
||||
@@ -264,7 +270,7 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
this.outLength = (var1 + this.outLength) % this.bufferLength;
|
||||
|
||||
try {
|
||||
if (this.outOffset == this.outLength) {
|
||||
if (this.outLength == this.outOffset) {
|
||||
this.outputStream.flush();
|
||||
}
|
||||
} catch (IOException var8) {
|
||||
@@ -292,7 +298,118 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
break;
|
||||
}
|
||||
} catch (Exception var12) {
|
||||
WorldMapDecorationType.RunException_sendStackTrace((String)null, var12);
|
||||
class197.RunException_sendStackTrace((String)null, var12);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IB)Ljm;",
|
||||
garbageValue = "67"
|
||||
)
|
||||
@Export("SequenceDefinition_get")
|
||||
public static SequenceDefinition SequenceDefinition_get(int var0) {
|
||||
SequenceDefinition var1 = (SequenceDefinition)SequenceDefinition.SequenceDefinition_cached.get((long)var0);
|
||||
if (var1 != null) {
|
||||
return var1;
|
||||
} else {
|
||||
byte[] var2 = SequenceDefinition.SequenceDefinition_archive.takeFile(12, var0);
|
||||
var1 = new SequenceDefinition();
|
||||
if (var2 != null) {
|
||||
var1.decode(new Buffer(var2));
|
||||
}
|
||||
|
||||
var1.postDecode();
|
||||
SequenceDefinition.SequenceDefinition_cached.put(var1, (long)var0);
|
||||
return var1;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkn;J)V"
|
||||
)
|
||||
static void method3677(Buffer var0, long var1) {
|
||||
var1 /= 10L;
|
||||
if (var1 < 0L) {
|
||||
var1 = 0L;
|
||||
} else if (var1 > 65535L) {
|
||||
var1 = 65535L;
|
||||
}
|
||||
|
||||
var0.writeShort((int)var1);
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)Leg;",
|
||||
garbageValue = "-1650164099"
|
||||
)
|
||||
@Export("getFrames")
|
||||
static Frames getFrames(int var0) {
|
||||
Frames var1 = (Frames)SequenceDefinition.SequenceDefinition_cachedFrames.get((long)var0);
|
||||
if (var1 != null) {
|
||||
return var1;
|
||||
} else {
|
||||
AbstractArchive var3 = SequenceDefinition.SequenceDefinition_animationsArchive;
|
||||
AbstractArchive var4 = SequenceDefinition.SequenceDefinition_skeletonsArchive;
|
||||
boolean var5 = true;
|
||||
int[] var6 = var3.getGroupFileIds(var0);
|
||||
|
||||
for (int var7 = 0; var7 < var6.length; ++var7) {
|
||||
byte[] var8 = var3.getFile(var0, var6[var7]);
|
||||
if (var8 == null) {
|
||||
var5 = false;
|
||||
} else {
|
||||
int var9 = (var8[0] & 255) << 8 | var8[1] & 255;
|
||||
byte[] var10 = var4.getFile(var9, 0);
|
||||
if (var10 == null) {
|
||||
var5 = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Frames var2;
|
||||
if (!var5) {
|
||||
var2 = null;
|
||||
} else {
|
||||
try {
|
||||
var2 = new Frames(var3, var4, var0, false);
|
||||
} catch (Exception var12) {
|
||||
var2 = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (var2 != null) {
|
||||
SequenceDefinition.SequenceDefinition_cachedFrames.put(var2, (long)var0);
|
||||
}
|
||||
|
||||
return var2;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("ko")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "2085444453"
|
||||
)
|
||||
static void method3674() {
|
||||
if (Client.field756 && class60.localPlayer != null) {
|
||||
int var0 = class60.localPlayer.pathX[0];
|
||||
int var1 = class60.localPlayer.pathY[0];
|
||||
if (var0 < 0 || var1 < 0 || var0 >= 104 || var1 >= 104) {
|
||||
return;
|
||||
}
|
||||
|
||||
class225.oculusOrbFocalPointX = class60.localPlayer.x;
|
||||
int var2 = Language.getTileHeight(class60.localPlayer.x, class60.localPlayer.y, TileItemPile.Client_plane) - Client.camFollowHeight;
|
||||
if (var2 < WorldMapDecoration.field234) {
|
||||
WorldMapDecoration.field234 = var2;
|
||||
}
|
||||
|
||||
HealthBarDefinition.oculusOrbFocalPointY = class60.localPlayer.y;
|
||||
Client.field756 = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user