Files
2006Scape/2006Redone Client/src/main/java/Varp.java
T
Daniel Ginovker eebc60084f Make project setup easier with Maven (#411)
* Remove a bunch of .ideas and class files to see if it makes the setup easier

* remove some .idea's and imkls

* Remove a ton of .class files

* [TASK] Switched to maven instead of gradle

* [TASK] Added target to gitignore

* Remove ignored files

* [TASK] Fixed file_server source

* [TASK] Fixed client source

* [BUGFIX] Main Class

* [BUGFIX] Fixed SLF4J

* [TASK] Server Libs cleanup

* Update setup guide/debug

* Maven cli compile instructions

* [TASK] Jar building

* Update runServer and runFileServer.sh

Co-authored-by: Sandro Coutinho <sandro@farrelltech.org>
2020-08-04 17:57:19 -04:00

72 lines
1.7 KiB
Java

// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
public final class Varp {
public static void unpackConfig(StreamLoader streamLoader) {
Stream stream = new Stream(streamLoader.getDataForName("varp.dat"));
anInt702 = 0;
int cacheSize = stream.readUnsignedWord();
if (cache == null) {
cache = new Varp[cacheSize];
}
if (anIntArray703 == null) {
anIntArray703 = new int[cacheSize];
}
for (int j = 0; j < cacheSize; j++) {
if (cache[j] == null) {
cache[j] = new Varp();
}
cache[j].readValues(stream, j);
}
if (stream.currentOffset != stream.buffer.length) {
System.out.println("varptype load mismatch");
}
}
private void readValues(Stream stream, int i) {
do {
int j = stream.readUnsignedByte();
if (j == 0) {
return;
}
if (j == 1) {
stream.readUnsignedByte();
} else if (j == 2) {
stream.readUnsignedByte();
} else if (j == 3) {
anIntArray703[anInt702++] = i;
} else if (j == 4) {
} else if (j == 5) {
anInt709 = stream.readUnsignedWord();
} else if (j == 6) {
} else if (j == 7) {
stream.readDWord();
} else if (j == 8) {
aBoolean713 = true;
} else if (j == 10) {
stream.readString();
} else if (j == 11) {
aBoolean713 = true;
} else if (j == 12) {
stream.readDWord();
} else if (j == 13) {
} else {
System.out.println("Error unrecognised config code: " + j);
}
} while (true);
}
private Varp() {
aBoolean713 = false;
}
public static Varp cache[];
private static int anInt702;
private static int[] anIntArray703;
public int anInt709;
public boolean aBoolean713;
}