mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
eebc60084f
* 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>
62 lines
1.5 KiB
Java
62 lines
1.5 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 VarBit {
|
|
|
|
public static void unpackConfig(StreamLoader streamLoader) {
|
|
Stream stream = new Stream(streamLoader.getDataForName("varbit.dat"));
|
|
int cacheSize = stream.readUnsignedWord();
|
|
if (cache == null) {
|
|
cache = new VarBit[cacheSize];
|
|
}
|
|
for (int j = 0; j < cacheSize; j++) {
|
|
if (cache[j] == null) {
|
|
cache[j] = new VarBit();
|
|
}
|
|
cache[j].readValues(stream);
|
|
if (cache[j].aBoolean651) {
|
|
Varp.cache[cache[j].anInt648].aBoolean713 = true;
|
|
}
|
|
}
|
|
|
|
if (stream.currentOffset != stream.buffer.length) {
|
|
System.out.println("varbit load mismatch");
|
|
}
|
|
}
|
|
|
|
private void readValues(Stream stream) {
|
|
do {
|
|
int j = stream.readUnsignedByte();
|
|
if (j == 0) {
|
|
return;
|
|
}
|
|
if (j == 1) {
|
|
anInt648 = stream.readUnsignedWord();
|
|
anInt649 = stream.readUnsignedByte();
|
|
anInt650 = stream.readUnsignedByte();
|
|
} else if (j == 10) {
|
|
stream.readString();
|
|
} else if (j == 2) {
|
|
aBoolean651 = true;
|
|
} else if (j == 3) {
|
|
stream.readDWord();
|
|
} else if (j == 4) {
|
|
stream.readDWord();
|
|
} else {
|
|
System.out.println("Error unrecognised config code: " + j);
|
|
}
|
|
} while (true);
|
|
}
|
|
|
|
private VarBit() {
|
|
aBoolean651 = false;
|
|
}
|
|
|
|
public static VarBit cache[];
|
|
public int anInt648;
|
|
public int anInt649;
|
|
public int anInt650;
|
|
private boolean aBoolean651;
|
|
}
|