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

@@ -3,23 +3,29 @@ import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.io.SyncFailedException;
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("my")
@ObfuscatedName("mr")
@Implements("AccessFile")
public final class AccessFile {
@ObfuscatedName("z")
@ObfuscatedName("f")
@Export("file")
RandomAccessFile file;
@ObfuscatedName("k")
@ObfuscatedName("b")
@ObfuscatedGetter(
longValue = 3150548694811435977L
longValue = 7305467514372323617L
)
@Export("maxSize")
final long maxSize;
@ObfuscatedName("s")
@ObfuscatedName("l")
@ObfuscatedGetter(
longValue = -5153103964935494605L
longValue = 6565072637966942499L
)
@Export("offset")
long offset;
public AccessFile(File var1, String var2, long var3) throws IOException {
@@ -43,17 +49,19 @@ public final class AccessFile {
this.file.seek(0L); // L: 23
} // L: 24
@ObfuscatedName("z")
@ObfuscatedName("f")
@Export("seek")
final void seek(long var1) throws IOException {
this.file.seek(var1); // L: 27
this.offset = var1; // L: 28
} // L: 29
@ObfuscatedName("k")
@ObfuscatedName("b")
@ObfuscatedSignature(
descriptor = "([BIII)V",
garbageValue = "1923920098"
garbageValue = "1653357535"
)
@Export("write")
public final void write(byte[] var1, int var2, int var3) throws IOException {
if (this.offset + (long)var3 > this.maxSize) { // L: 32
this.file.seek(this.maxSize); // L: 33
@@ -65,20 +73,22 @@ public final class AccessFile {
}
} // L: 39
@ObfuscatedName("s")
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "(B)V",
garbageValue = "53"
descriptor = "(I)V",
garbageValue = "115800567"
)
@Export("close")
public final void close() throws IOException {
this.closeSync(false); // L: 42
} // L: 43
@ObfuscatedName("t")
@ObfuscatedName("m")
@ObfuscatedSignature(
descriptor = "(ZI)V",
garbageValue = "-152121757"
garbageValue = "1735365545"
)
@Export("closeSync")
public final void closeSync(boolean var1) throws IOException {
if (this.file != null) { // L: 46
if (var1) { // L: 47
@@ -94,20 +104,22 @@ public final class AccessFile {
} // L: 56
@ObfuscatedName("i")
@ObfuscatedName("z")
@ObfuscatedSignature(
descriptor = "(B)J",
garbageValue = "-78"
descriptor = "(I)J",
garbageValue = "836289418"
)
@Export("length")
public final long length() throws IOException {
return this.file.length(); // L: 59
}
@ObfuscatedName("o")
@ObfuscatedName("q")
@ObfuscatedSignature(
descriptor = "([BIII)I",
garbageValue = "-2147147589"
descriptor = "([BIIB)I",
garbageValue = "119"
)
@Export("read")
public final int read(byte[] var1, int var2, int var3) throws IOException {
int var4 = this.file.read(var1, var2, var3); // L: 63
if (var4 > 0) {