rev187
This commit is contained in:
@@ -9,66 +9,75 @@ import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("fq")
|
||||
@ObfuscatedName("fa")
|
||||
@Implements("NetSocket")
|
||||
public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("qg")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lcw;"
|
||||
)
|
||||
@Export("pcmPlayer1")
|
||||
static PcmPlayer pcmPlayer1;
|
||||
@ObfuscatedName("as")
|
||||
@Export("fontHelvetica13")
|
||||
static java.awt.Font fontHelvetica13;
|
||||
@ObfuscatedName("f")
|
||||
@Export("inputStream")
|
||||
InputStream inputStream;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("i")
|
||||
@Export("outputStream")
|
||||
OutputStream outputStream;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("y")
|
||||
@Export("socket")
|
||||
Socket socket;
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("w")
|
||||
@Export("isClosed")
|
||||
boolean isClosed;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lfu;"
|
||||
signature = "Lfl;"
|
||||
)
|
||||
@Export("taskHandler")
|
||||
TaskHandler taskHandler;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lfo;"
|
||||
signature = "Lfu;"
|
||||
)
|
||||
@Export("task")
|
||||
Task task;
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedName("e")
|
||||
@Export("outBuffer")
|
||||
byte[] outBuffer;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -802191953
|
||||
intValue = 1287462685
|
||||
)
|
||||
@Export("outLength")
|
||||
int outLength;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -2034803765
|
||||
intValue = -533628629
|
||||
)
|
||||
@Export("outOffset")
|
||||
int outOffset;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("d")
|
||||
@Export("exceptionWriting")
|
||||
boolean exceptionWriting;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1614956345
|
||||
intValue = 1191664447
|
||||
)
|
||||
@Export("bufferLength")
|
||||
final int bufferLength;
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 881888213
|
||||
intValue = 693906147
|
||||
)
|
||||
@Export("maxPacketLength")
|
||||
final int maxPacketLength;
|
||||
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/net/Socket;Lfu;I)V"
|
||||
signature = "(Ljava/net/Socket;Lfl;I)V"
|
||||
)
|
||||
public NetSocket(Socket var1, TaskHandler var2, int var3) throws IOException {
|
||||
this.isClosed = false;
|
||||
@@ -87,10 +96,10 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
this.outputStream = this.socket.getOutputStream();
|
||||
}
|
||||
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "-29"
|
||||
signature = "(I)V",
|
||||
garbageValue = "-647274291"
|
||||
)
|
||||
@Export("close")
|
||||
public void close() {
|
||||
@@ -102,10 +111,7 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
|
||||
if (this.task != null) {
|
||||
while (this.task.status == 0) {
|
||||
try {
|
||||
Thread.sleep(1L);
|
||||
} catch (InterruptedException var4) {
|
||||
}
|
||||
ServerBuild.method4111(1L);
|
||||
}
|
||||
|
||||
if (this.task.status == 1) {
|
||||
@@ -120,30 +126,30 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)I",
|
||||
garbageValue = "27"
|
||||
signature = "(I)I",
|
||||
garbageValue = "2115277231"
|
||||
)
|
||||
@Export("readUnsignedByte")
|
||||
public int readUnsignedByte() throws IOException {
|
||||
return this.isClosed ? 0 : this.inputStream.read();
|
||||
}
|
||||
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)I",
|
||||
garbageValue = "-53"
|
||||
signature = "(I)I",
|
||||
garbageValue = "-972484659"
|
||||
)
|
||||
@Export("available")
|
||||
public int available() throws IOException {
|
||||
return this.isClosed ? 0 : this.inputStream.available();
|
||||
}
|
||||
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)Z",
|
||||
garbageValue = "-1591428004"
|
||||
garbageValue = "497635177"
|
||||
)
|
||||
@Export("isAvailable")
|
||||
public boolean isAvailable(int var1) throws IOException {
|
||||
@@ -154,10 +160,10 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIIB)I",
|
||||
garbageValue = "29"
|
||||
signature = "([BIII)I",
|
||||
garbageValue = "-1642271193"
|
||||
)
|
||||
@Export("read")
|
||||
public int read(byte[] var1, int var2, int var3) throws IOException {
|
||||
@@ -179,10 +185,10 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIIB)V",
|
||||
garbageValue = "118"
|
||||
garbageValue = "59"
|
||||
)
|
||||
@Export("write0")
|
||||
void write0(byte[] var1, int var2, int var3) throws IOException {
|
||||
@@ -214,10 +220,10 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIII)V",
|
||||
garbageValue = "-543253817"
|
||||
garbageValue = "-340382115"
|
||||
)
|
||||
@Export("write")
|
||||
public void write(byte[] var1, int var2, int var3) throws IOException {
|
||||
@@ -267,7 +273,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) {
|
||||
@@ -295,8 +301,88 @@ public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
break;
|
||||
}
|
||||
} catch (Exception var12) {
|
||||
Calendar.RunException_sendStackTrace((String)null, var12);
|
||||
DesktopPlatformInfoProvider.RunException_sendStackTrace((String)null, var12);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(CB)B",
|
||||
garbageValue = "11"
|
||||
)
|
||||
@Export("charToByteCp1252")
|
||||
public static byte charToByteCp1252(char var0) {
|
||||
byte var1;
|
||||
if (var0 > 0 && var0 < 128 || var0 >= 160 && var0 <= 255) {
|
||||
var1 = (byte)var0;
|
||||
} else if (var0 == 8364) {
|
||||
var1 = -128;
|
||||
} else if (var0 == 8218) {
|
||||
var1 = -126;
|
||||
} else if (var0 == 402) {
|
||||
var1 = -125;
|
||||
} else if (var0 == 8222) {
|
||||
var1 = -124;
|
||||
} else if (var0 == 8230) {
|
||||
var1 = -123;
|
||||
} else if (var0 == 8224) {
|
||||
var1 = -122;
|
||||
} else if (var0 == 8225) {
|
||||
var1 = -121;
|
||||
} else if (var0 == 710) {
|
||||
var1 = -120;
|
||||
} else if (var0 == 8240) {
|
||||
var1 = -119;
|
||||
} else if (var0 == 352) {
|
||||
var1 = -118;
|
||||
} else if (var0 == 8249) {
|
||||
var1 = -117;
|
||||
} else if (var0 == 338) {
|
||||
var1 = -116;
|
||||
} else if (var0 == 381) {
|
||||
var1 = -114;
|
||||
} else if (var0 == 8216) {
|
||||
var1 = -111;
|
||||
} else if (var0 == 8217) {
|
||||
var1 = -110;
|
||||
} else if (var0 == 8220) {
|
||||
var1 = -109;
|
||||
} else if (var0 == 8221) {
|
||||
var1 = -108;
|
||||
} else if (var0 == 8226) {
|
||||
var1 = -107;
|
||||
} else if (var0 == 8211) {
|
||||
var1 = -106;
|
||||
} else if (var0 == 8212) {
|
||||
var1 = -105;
|
||||
} else if (var0 == 732) {
|
||||
var1 = -104;
|
||||
} else if (var0 == 8482) {
|
||||
var1 = -103;
|
||||
} else if (var0 == 353) {
|
||||
var1 = -102;
|
||||
} else if (var0 == 8250) {
|
||||
var1 = -101;
|
||||
} else if (var0 == 339) {
|
||||
var1 = -100;
|
||||
} else if (var0 == 382) {
|
||||
var1 = -98;
|
||||
} else if (var0 == 376) {
|
||||
var1 = -97;
|
||||
} else {
|
||||
var1 = 63;
|
||||
}
|
||||
|
||||
return var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("av")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-1769273024"
|
||||
)
|
||||
public static void method3525() {
|
||||
ItemDefinition.ItemDefinition_cachedSprites.clear();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user