project: rev 199

This commit is contained in:
Owain van Brakel
2021-08-25 13:49:53 +02:00
parent c1fffa1562
commit e6be88fbeb
490 changed files with 47651 additions and 46243 deletions

View File

@@ -6,72 +6,77 @@ import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("nh")
@ObfuscatedName("nm")
@Implements("BufferedFile")
public class BufferedFile {
@ObfuscatedName("t")
@ObfuscatedName("ma")
@ObfuscatedSignature(
descriptor = "Lnx;"
descriptor = "Ljd;"
)
static Widget field4227;
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "Lnn;"
)
@Export("accessFile")
AccessFile accessFile;
@ObfuscatedName("v")
@ObfuscatedName("m")
@Export("readBuffer")
byte[] readBuffer;
@ObfuscatedName("j")
@ObfuscatedName("k")
@ObfuscatedGetter(
longValue = -3766885552873211485L
longValue = 8206064440488696005L
)
@Export("readBufferOffset")
long readBufferOffset;
@ObfuscatedName("l")
@ObfuscatedName("o")
@ObfuscatedGetter(
intValue = -2139615801
intValue = 1254832925
)
@Export("readBufferLength")
int readBufferLength;
@ObfuscatedName("n")
@ObfuscatedName("g")
@Export("writeBuffer")
byte[] writeBuffer;
@ObfuscatedName("w")
@ObfuscatedName("z")
@ObfuscatedGetter(
longValue = 8976089063381266933L
longValue = 506713374014136899L
)
@Export("writeBufferOffset")
long writeBufferOffset;
@ObfuscatedName("f")
@ObfuscatedName("a")
@ObfuscatedGetter(
intValue = -490411647
intValue = 823949627
)
@Export("writeBufferLength")
int writeBufferLength;
@ObfuscatedName("o")
@ObfuscatedName("u")
@ObfuscatedGetter(
longValue = -6685793384620451399L
longValue = 7790686159451358409L
)
@Export("offset")
long offset;
@ObfuscatedName("x")
@ObfuscatedName("e")
@ObfuscatedGetter(
longValue = -514668632289479539L
longValue = -8317105703859247781L
)
@Export("fileLength")
long fileLength;
@ObfuscatedName("r")
@ObfuscatedName("l")
@ObfuscatedGetter(
longValue = -7669073227626038819L
longValue = 7928376794679611023L
)
@Export("length")
long length;
@ObfuscatedName("p")
@ObfuscatedName("y")
@ObfuscatedGetter(
longValue = -7913431712246831653L
longValue = -757931167523736079L
)
@Export("fileOffset")
long fileOffset;
@ObfuscatedSignature(
descriptor = "(Lnx;II)V"
descriptor = "(Lnn;II)V"
)
public BufferedFile(AccessFile var1, int var2, int var3) throws IOException {
this.readBufferOffset = -1L;
@@ -84,10 +89,10 @@ public class BufferedFile {
this.offset = 0L;
}
@ObfuscatedName("s")
@ObfuscatedName("n")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "1641755692"
garbageValue = "2076443920"
)
@Export("close")
public void close() throws IOException {
@@ -95,7 +100,7 @@ public class BufferedFile {
this.accessFile.close();
}
@ObfuscatedName("t")
@ObfuscatedName("c")
@Export("seek")
public void seek(long var1) throws IOException {
if (var1 < 0L) {
@@ -105,30 +110,30 @@ public class BufferedFile {
}
}
@ObfuscatedName("v")
@ObfuscatedName("m")
@ObfuscatedSignature(
descriptor = "(S)J",
garbageValue = "17997"
descriptor = "(I)J",
garbageValue = "-2099074998"
)
@Export("length")
public long length() {
return this.length;
}
@ObfuscatedName("j")
@ObfuscatedName("k")
@ObfuscatedSignature(
descriptor = "([BI)V",
garbageValue = "1754869480"
descriptor = "([BB)V",
garbageValue = "-114"
)
@Export("readFully")
public void readFully(byte[] var1) throws IOException {
this.read(var1, 0, var1.length);
}
@ObfuscatedName("l")
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "([BIII)V",
garbageValue = "-1776253078"
descriptor = "([BIIB)V",
garbageValue = "-67"
)
@Export("read")
public void read(byte[] var1, int var2, int var3) throws IOException {
@@ -137,7 +142,7 @@ public class BufferedFile {
throw new ArrayIndexOutOfBoundsException(var3 + var2 - var1.length);
}
if (this.writeBufferOffset != -1L && this.offset >= this.writeBufferOffset && (long)var3 + this.offset <= (long)this.writeBufferLength + this.writeBufferOffset) {
if (-1L != this.writeBufferOffset && this.offset >= this.writeBufferOffset && (long)var3 + this.offset <= this.writeBufferOffset + (long)this.writeBufferLength) {
System.arraycopy(this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var1, var2, var3);
this.offset += (long)var3;
return;
@@ -206,10 +211,10 @@ public class BufferedFile {
var13 = var4;
}
if ((long)this.writeBufferLength + this.writeBufferOffset > var4 && (long)this.writeBufferLength + this.writeBufferOffset <= var4 + (long)var7) {
if (this.writeBufferOffset + (long)this.writeBufferLength > var4 && this.writeBufferOffset + (long)this.writeBufferLength <= (long)var7 + var4) {
var10 = (long)this.writeBufferLength + this.writeBufferOffset;
} else if (var4 + (long)var7 > this.writeBufferOffset && var4 + (long)var7 <= (long)this.writeBufferLength + this.writeBufferOffset) {
var10 = var4 + (long)var7;
} else if ((long)var7 + var4 > this.writeBufferOffset && var4 + (long)var7 <= (long)this.writeBufferLength + this.writeBufferOffset) {
var10 = (long)var7 + var4;
}
if (var13 > -1L && var10 > var13) {
@@ -231,10 +236,10 @@ public class BufferedFile {
}
}
@ObfuscatedName("n")
@ObfuscatedName("g")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "1420179054"
garbageValue = "1025800655"
)
@Export("load")
void load() throws IOException {
@@ -261,15 +266,15 @@ public class BufferedFile {
}
@ObfuscatedName("w")
@ObfuscatedName("z")
@ObfuscatedSignature(
descriptor = "([BIIB)V",
garbageValue = "-59"
descriptor = "([BIII)V",
garbageValue = "171199220"
)
@Export("write")
public void write(byte[] var1, int var2, int var3) throws IOException {
try {
if ((long)var3 + this.offset > this.length) {
if (this.offset + (long)var3 > this.length) {
this.length = this.offset + (long)var3;
}
@@ -277,7 +282,7 @@ public class BufferedFile {
this.flush();
}
if (-1L != this.writeBufferOffset && this.offset + (long)var3 > this.writeBufferOffset + (long)this.writeBuffer.length) {
if (-1L != this.writeBufferOffset && this.offset + (long)var3 > (long)this.writeBuffer.length + this.writeBufferOffset) {
int var4 = (int)((long)this.writeBuffer.length - (this.offset - this.writeBufferOffset));
System.arraycopy(var1, var2, this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var4);
this.offset += (long)var4;
@@ -289,7 +294,7 @@ public class BufferedFile {
if (var3 <= this.writeBuffer.length) {
if (var3 > 0) {
if (this.writeBufferOffset == -1L) {
if (-1L == this.writeBufferOffset) {
this.writeBufferOffset = this.offset;
}
@@ -301,7 +306,7 @@ public class BufferedFile {
}
} else {
if (this.fileOffset != this.offset) {
if (this.offset != this.fileOffset) {
this.accessFile.seek(this.offset);
this.fileOffset = this.offset;
}
@@ -320,15 +325,15 @@ public class BufferedFile {
var9 = this.readBufferOffset;
}
if (this.offset + (long)var3 > this.readBufferOffset && this.offset + (long)var3 <= (long)this.readBufferLength + this.readBufferOffset) {
if ((long)var3 + this.offset > this.readBufferOffset && this.offset + (long)var3 <= this.readBufferOffset + (long)this.readBufferLength) {
var6 = this.offset + (long)var3;
} else if ((long)this.readBufferLength + this.readBufferOffset > this.offset && this.readBufferOffset + (long)this.readBufferLength <= this.offset + (long)var3) {
} else if ((long)this.readBufferLength + this.readBufferOffset > this.offset && (long)this.readBufferLength + this.readBufferOffset <= this.offset + (long)var3) {
var6 = this.readBufferOffset + (long)this.readBufferLength;
}
if (var9 > -1L && var6 > var9) {
int var8 = (int)(var6 - var9);
System.arraycopy(var1, (int)((long)var2 + var9 - this.offset), this.readBuffer, (int)(var9 - this.readBufferOffset), var8);
System.arraycopy(var1, (int)(var9 + (long)var2 - this.offset), this.readBuffer, (int)(var9 - this.readBufferOffset), var8);
}
this.offset += (long)var3;
@@ -339,28 +344,28 @@ public class BufferedFile {
}
}
@ObfuscatedName("f")
@ObfuscatedName("a")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "-2001872519"
garbageValue = "338977619"
)
@Export("flush")
void flush() throws IOException {
if (-1L != this.writeBufferOffset) {
if (this.writeBufferOffset != this.fileOffset) {
if (this.fileOffset != this.writeBufferOffset) {
this.accessFile.seek(this.writeBufferOffset);
this.fileOffset = this.writeBufferOffset;
}
this.accessFile.write(this.writeBuffer, 0, this.writeBufferLength);
this.fileOffset += (long)this.writeBufferLength * -632165000663793663L;
this.fileOffset += (long)this.writeBufferLength * 483175651772203009L;
if (this.fileOffset > this.fileLength) {
this.fileLength = this.fileOffset;
}
long var1 = -1L;
long var3 = -1L;
if (this.writeBufferOffset >= this.readBufferOffset && this.writeBufferOffset < (long)this.readBufferLength + this.readBufferOffset) {
if (this.writeBufferOffset >= this.readBufferOffset && this.writeBufferOffset < this.readBufferOffset + (long)this.readBufferLength) {
var1 = this.writeBufferOffset;
} else if (this.readBufferOffset >= this.writeBufferOffset && this.readBufferOffset < this.writeBufferOffset + (long)this.writeBufferLength) {
var1 = this.readBufferOffset;
@@ -368,8 +373,8 @@ public class BufferedFile {
if (this.writeBufferOffset + (long)this.writeBufferLength > this.readBufferOffset && this.writeBufferOffset + (long)this.writeBufferLength <= this.readBufferOffset + (long)this.readBufferLength) {
var3 = this.writeBufferOffset + (long)this.writeBufferLength;
} else if (this.readBufferOffset + (long)this.readBufferLength > this.writeBufferOffset && this.readBufferOffset + (long)this.readBufferLength <= this.writeBufferOffset + (long)this.writeBufferLength) {
var3 = this.readBufferOffset + (long)this.readBufferLength;
} else if ((long)this.readBufferLength + this.readBufferOffset > this.writeBufferOffset && (long)this.readBufferLength + this.readBufferOffset <= (long)this.writeBufferLength + this.writeBufferOffset) {
var3 = (long)this.readBufferLength + this.readBufferOffset;
}
if (var1 > -1L && var3 > var1) {