project: rev 192

This commit is contained in:
ThatGamerBlue
2020-10-21 14:30:57 +02:00
parent 47583ab7c6
commit 88599e5dd3
355 changed files with 53400 additions and 49134 deletions

View File

@@ -1,63 +1,77 @@
import java.io.EOFException;
import java.io.IOException;
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("mz")
@Implements("BufferedFile")
public class BufferedFile {
@ObfuscatedName("k")
@ObfuscatedName("b")
@ObfuscatedSignature(
descriptor = "Lmy;"
descriptor = "Lmr;"
)
@Export("accessFile")
AccessFile accessFile;
@ObfuscatedName("s")
@ObfuscatedName("l")
@Export("readBuffer")
byte[] readBuffer;
@ObfuscatedName("t")
@ObfuscatedGetter(
longValue = 9179108447436471203L
)
long readBufferOffset;
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = 405113093
)
int readBufferLength;
@ObfuscatedName("o")
byte[] writeBuffer;
@ObfuscatedName("x")
@ObfuscatedGetter(
longValue = -2663227867343054731L
)
long writeBufferOffset;
@ObfuscatedName("w")
@ObfuscatedGetter(
intValue = -44681909
)
int writeBufferLength;
@ObfuscatedName("g")
@ObfuscatedGetter(
longValue = 8904526348477535207L
)
long offset;
@ObfuscatedName("m")
@ObfuscatedGetter(
longValue = 3315460692689798849L
longValue = -6482337856492114931L
)
@Export("readBufferOffset")
long readBufferOffset;
@ObfuscatedName("z")
@ObfuscatedGetter(
intValue = 1044062057
)
@Export("readBufferLength")
int readBufferLength;
@ObfuscatedName("q")
@Export("writeBuffer")
byte[] writeBuffer;
@ObfuscatedName("k")
@ObfuscatedGetter(
longValue = 2774637488082340967L
)
@Export("writeBufferOffset")
long writeBufferOffset;
@ObfuscatedName("c")
@ObfuscatedGetter(
intValue = 1024497111
)
@Export("writeBufferLength")
int writeBufferLength;
@ObfuscatedName("u")
@ObfuscatedGetter(
longValue = -561179162582633637L
)
@Export("offset")
long offset;
@ObfuscatedName("t")
@ObfuscatedGetter(
longValue = -2408592665773969817L
)
@Export("fileLength")
long fileLength;
@ObfuscatedName("n")
@ObfuscatedName("e")
@ObfuscatedGetter(
longValue = -7074391582166578327L
longValue = -5636078881835080275L
)
@Export("length")
long length;
@ObfuscatedName("d")
@ObfuscatedName("o")
@ObfuscatedGetter(
longValue = 8487172473192178189L
longValue = -1026636672774520795L
)
@Export("fileOffset")
long fileOffset;
@ObfuscatedSignature(
descriptor = "(Lmy;II)V"
descriptor = "(Lmr;II)V"
)
public BufferedFile(AccessFile var1, int var2, int var3) throws IOException {
this.readBufferOffset = -1L; // L: 9
@@ -70,17 +84,19 @@ public class BufferedFile {
this.offset = 0L; // L: 24
} // L: 25
@ObfuscatedName("z")
@ObfuscatedName("f")
@ObfuscatedSignature(
descriptor = "(B)V",
garbageValue = "-33"
garbageValue = "36"
)
@Export("close")
public void close() throws IOException {
this.flush(); // L: 28
this.accessFile.close(); // L: 29
} // L: 30
@ObfuscatedName("k")
@ObfuscatedName("b")
@Export("seek")
public void seek(long var1) throws IOException {
if (var1 < 0L) { // L: 33
throw new IOException("");
@@ -89,36 +105,39 @@ public class BufferedFile {
}
} // L: 35
@ObfuscatedName("s")
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "(I)J",
garbageValue = "-1539100429"
garbageValue = "-1848502786"
)
@Export("length")
public long length() {
return this.length; // L: 38
}
@ObfuscatedName("t")
@ObfuscatedName("m")
@ObfuscatedSignature(
descriptor = "([BI)V",
garbageValue = "-1457343734"
descriptor = "([BB)V",
garbageValue = "-4"
)
@Export("readFully")
public void readFully(byte[] var1) throws IOException {
this.read(var1, 0, var1.length); // L: 42
} // L: 43
@ObfuscatedName("i")
@ObfuscatedName("z")
@ObfuscatedSignature(
descriptor = "([BIII)V",
garbageValue = "779663490"
garbageValue = "-1500902626"
)
@Export("read")
public void read(byte[] var1, int var2, int var3) throws IOException {
try {
if (var3 + var2 > var1.length) { // L: 47
throw new ArrayIndexOutOfBoundsException(var3 + var2 - var1.length);
}
if (this.writeBufferOffset != -1L && this.offset >= this.writeBufferOffset && this.offset + (long)var3 <= (long)this.writeBufferLength + this.writeBufferOffset) { // L: 48
if (-1L != this.writeBufferOffset && this.offset >= this.writeBufferOffset && (long)var3 + this.offset <= (long)this.writeBufferLength + this.writeBufferOffset) { // L: 48
System.arraycopy(this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var1, var2, var3); // L: 49
this.offset += (long)var3; // L: 50
return; // L: 51
@@ -127,7 +146,7 @@ public class BufferedFile {
long var4 = this.offset; // L: 53
int var7 = var3; // L: 55
int var8;
if (this.offset >= this.readBufferOffset && this.offset < (long)this.readBufferLength + this.readBufferOffset) { // L: 56
if (this.offset >= this.readBufferOffset && this.offset < this.readBufferOffset + (long)this.readBufferLength) { // L: 56
var8 = (int)((long)this.readBufferLength - (this.offset - this.readBufferOffset)); // L: 57
if (var8 > var3) { // L: 58
var8 = var3;
@@ -181,16 +200,16 @@ public class BufferedFile {
long var13 = -1L; // L: 95
long var10 = -1L; // L: 96
if (this.writeBufferOffset >= var4 && this.writeBufferOffset < var4 + (long)var7) { // L: 97
if (this.writeBufferOffset >= var4 && this.writeBufferOffset < (long)var7 + var4) { // L: 97
var13 = this.writeBufferOffset; // L: 98
} else if (var4 >= this.writeBufferOffset && var4 < this.writeBufferOffset + (long)this.writeBufferLength) { // L: 100
var13 = var4; // L: 101
}
if ((long)this.writeBufferLength + this.writeBufferOffset > var4 && this.writeBufferOffset + (long)this.writeBufferLength <= var4 + (long)var7) { // L: 103
if ((long)this.writeBufferLength + this.writeBufferOffset > var4 && this.writeBufferOffset + (long)this.writeBufferLength <= (long)var7 + var4) { // L: 103
var10 = this.writeBufferOffset + (long)this.writeBufferLength; // L: 104
} else if ((long)var7 + var4 > this.writeBufferOffset && var4 + (long)var7 <= this.writeBufferOffset + (long)this.writeBufferLength) { // L: 106
var10 = (long)var7 + var4; // L: 107
} else if (var4 + (long)var7 > this.writeBufferOffset && (long)var7 + var4 <= this.writeBufferOffset + (long)this.writeBufferLength) { // L: 106
var10 = var4 + (long)var7; // L: 107
}
if (var13 > -1L && var10 > var13) { // L: 109
@@ -212,14 +231,15 @@ public class BufferedFile {
}
} // L: 125
@ObfuscatedName("o")
@ObfuscatedName("q")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "1341738722"
garbageValue = "2145784037"
)
@Export("load")
void load() throws IOException {
this.readBufferLength = 0; // L: 128
if (this.offset != this.fileOffset) { // L: 129
if (this.fileOffset != this.offset) { // L: 129
this.accessFile.seek(this.offset); // L: 130
this.fileOffset = this.offset; // L: 131
}
@@ -241,22 +261,23 @@ public class BufferedFile {
} // L: 142
@ObfuscatedName("x")
@ObfuscatedName("k")
@ObfuscatedSignature(
descriptor = "([BIII)V",
garbageValue = "329860365"
garbageValue = "1113982588"
)
@Export("write")
public void write(byte[] var1, int var2, int var3) throws IOException {
try {
if ((long)var3 + this.offset > this.length) { // L: 146
if (this.offset + (long)var3 > this.length) { // L: 146
this.length = this.offset + (long)var3;
}
if (-1L != this.writeBufferOffset && (this.offset < this.writeBufferOffset || this.offset > (long)this.writeBufferLength + this.writeBufferOffset)) { // L: 147
if (-1L != this.writeBufferOffset && (this.offset < this.writeBufferOffset || this.offset > this.writeBufferOffset + (long)this.writeBufferLength)) { // L: 147
this.flush(); // L: 148
}
if (this.writeBufferOffset != -1L && (long)var3 + this.offset > this.writeBufferOffset + (long)this.writeBuffer.length) { // L: 150
if (this.writeBufferOffset != -1L && this.offset + (long)var3 > this.writeBufferOffset + (long)this.writeBuffer.length) { // L: 150
int var4 = (int)((long)this.writeBuffer.length - (this.offset - this.writeBufferOffset)); // L: 151
System.arraycopy(var1, var2, this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var4); // L: 152
this.offset += (long)var4; // L: 153
@@ -295,14 +316,14 @@ public class BufferedFile {
long var6 = -1L; // L: 168
if (this.offset >= this.readBufferOffset && this.offset < (long)this.readBufferLength + this.readBufferOffset) { // L: 169
var9 = this.offset; // L: 170
} else if (this.readBufferOffset >= this.offset && this.readBufferOffset < (long)var3 + this.offset) { // L: 172
} else if (this.readBufferOffset >= this.offset && this.readBufferOffset < this.offset + (long)var3) { // L: 172
var9 = this.readBufferOffset; // L: 173
}
if ((long)var3 + this.offset > this.readBufferOffset && (long)var3 + this.offset <= (long)this.readBufferLength + this.readBufferOffset) { // L: 175
var6 = this.offset + (long)var3; // L: 176
} else if (this.readBufferOffset + (long)this.readBufferLength > this.offset && this.readBufferOffset + (long)this.readBufferLength <= (long)var3 + this.offset) { // L: 178
var6 = this.readBufferOffset + (long)this.readBufferLength; // L: 179
if ((long)var3 + this.offset > this.readBufferOffset && (long)var3 + this.offset <= this.readBufferOffset + (long)this.readBufferLength) { // L: 175
var6 = (long)var3 + this.offset; // L: 176
} else if ((long)this.readBufferLength + this.readBufferOffset > this.offset && (long)this.readBufferLength + this.readBufferOffset <= this.offset + (long)var3) { // L: 178
var6 = (long)this.readBufferLength + this.readBufferOffset; // L: 179
}
if (var9 > -1L && var6 > var9) { // L: 181
@@ -318,36 +339,37 @@ public class BufferedFile {
}
} // L: 186 193 200
@ObfuscatedName("w")
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "-236075933"
garbageValue = "-540303009"
)
@Export("flush")
void flush() throws IOException {
if (-1L != this.writeBufferOffset) { // L: 203
if (this.fileOffset != this.writeBufferOffset) { // L: 204
if (this.writeBufferOffset != -1L) { // L: 203
if (this.writeBufferOffset != this.fileOffset) { // L: 204
this.accessFile.seek(this.writeBufferOffset); // L: 205
this.fileOffset = this.writeBufferOffset; // L: 206
}
this.accessFile.write(this.writeBuffer, 0, this.writeBufferLength); // L: 208
this.fileOffset += (long)this.writeBufferLength * 16721398605021185L; // L: 209
this.fileOffset += (long)this.writeBufferLength * 1781005947037024257L; // L: 209
if (this.fileOffset > this.fileLength) { // L: 210
this.fileLength = this.fileOffset;
}
long var1 = -1L; // L: 211
long var3 = -1L; // L: 212
if (this.writeBufferOffset >= this.readBufferOffset && this.writeBufferOffset < (long)this.readBufferLength + this.readBufferOffset) { // L: 213
if (this.writeBufferOffset >= this.readBufferOffset && this.writeBufferOffset < this.readBufferOffset + (long)this.readBufferLength) { // L: 213
var1 = this.writeBufferOffset; // L: 214
} else if (this.readBufferOffset >= this.writeBufferOffset && this.readBufferOffset < this.writeBufferOffset + (long)this.writeBufferLength) { // L: 216
var1 = this.readBufferOffset; // L: 217
}
if ((long)this.writeBufferLength + this.writeBufferOffset > this.readBufferOffset && this.writeBufferOffset + (long)this.writeBufferLength <= (long)this.readBufferLength + this.readBufferOffset) { // L: 219
if (this.writeBufferOffset + (long)this.writeBufferLength > this.readBufferOffset && (long)this.writeBufferLength + this.writeBufferOffset <= this.readBufferOffset + (long)this.readBufferLength) { // L: 219
var3 = this.writeBufferOffset + (long)this.writeBufferLength; // L: 220
} else if (this.readBufferOffset + (long)this.readBufferLength > this.writeBufferOffset && (long)this.readBufferLength + this.readBufferOffset <= (long)this.writeBufferLength + this.writeBufferOffset) { // L: 222
var3 = (long)this.readBufferLength + this.readBufferOffset; // L: 223
} else if ((long)this.readBufferLength + this.readBufferOffset > this.writeBufferOffset && this.readBufferOffset + (long)this.readBufferLength <= (long)this.writeBufferLength + this.writeBufferOffset) { // L: 222
var3 = this.readBufferOffset + (long)this.readBufferLength; // L: 223
}
if (var1 > -1L && var3 > var1) { // L: 225