chore: rev 194

This commit is contained in:
zeruth
2021-02-24 08:08:39 -05:00
parent 11dd1cdb41
commit e1df0f6f7c
352 changed files with 83792 additions and 85533 deletions

View File

@@ -5,449 +5,448 @@ import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("il")
@ObfuscatedName("iy")
@Implements("Archive")
public class Archive extends AbstractArchive {
@ObfuscatedName("ax")
@Export("Archive_crc")
static CRC32 Archive_crc;
@ObfuscatedName("s")
@ObfuscatedSignature(
descriptor = "Llx;"
)
@Export("archiveDisk")
ArchiveDisk archiveDisk;
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "Llx;"
)
@Export("masterDisk")
ArchiveDisk masterDisk;
@ObfuscatedName("k")
@ObfuscatedGetter(
intValue = -238698165
)
@Export("index")
int index;
@ObfuscatedName("d")
volatile boolean field3185;
@ObfuscatedName("an")
boolean field3192;
@ObfuscatedName("aj")
@Export("validGroups")
volatile boolean[] validGroups;
@ObfuscatedName("ag")
@ObfuscatedGetter(
intValue = 490839009
)
@Export("indexCrc")
int indexCrc;
@ObfuscatedName("au")
@ObfuscatedGetter(
intValue = -1466147075
)
@Export("indexVersion")
int indexVersion;
@ObfuscatedName("as")
@ObfuscatedGetter(
intValue = 1342642221
)
int field3191;
@ObfuscatedName("ag")
@Export("Archive_crc")
static CRC32 Archive_crc = new CRC32();
@ObfuscatedName("m")
@ObfuscatedSignature(
descriptor = "Llu;"
)
@Export("archiveDisk")
ArchiveDisk archiveDisk;
@ObfuscatedName("r")
@ObfuscatedSignature(
descriptor = "Llu;"
)
@Export("masterDisk")
ArchiveDisk masterDisk;
@ObfuscatedName("o")
@ObfuscatedGetter(
intValue = 985029217
)
@Export("index")
int index;
@ObfuscatedName("j")
volatile boolean field3192 = false;
@ObfuscatedName("ay")
boolean field3196 = false;
@ObfuscatedName("am")
@Export("validGroups")
volatile boolean[] validGroups;
@ObfuscatedName("ae")
@ObfuscatedGetter(
intValue = -1841826013
)
@Export("indexCrc")
int indexCrc;
@ObfuscatedName("ac")
@ObfuscatedGetter(
intValue = 650586757
)
@Export("indexVersion")
int indexVersion;
@ObfuscatedName("aq")
@ObfuscatedGetter(
intValue = 292662723
)
int field3200 = -1;
static {
Archive_crc = new CRC32(); // L: 17
}
@ObfuscatedSignature(
descriptor = "(Llu;Llu;IZZZ)V"
)
public Archive(ArchiveDisk var1, ArchiveDisk var2, int var3, boolean var4, boolean var5, boolean var6) {
super(var4, var5);
this.archiveDisk = var1;
this.masterDisk = var2;
this.index = var3;
this.field3196 = var6;
int var8 = this.index;
if (SoundSystem.NetCache_reference != null) {
SoundSystem.NetCache_reference.offset = var8 * 8 + 5;
int var9 = SoundSystem.NetCache_reference.readInt();
int var10 = SoundSystem.NetCache_reference.readInt();
this.loadIndex(var9, var10);
} else {
WorldMapSectionType.requestNetFile((Archive)null, 255, 255, 0, (byte)0, true);
NetCache.NetCache_archives[var8] = this;
}
@ObfuscatedSignature(
descriptor = "(Llx;Llx;IZZZ)V"
)
public Archive(ArchiveDisk var1, ArchiveDisk var2, int var3, boolean var4, boolean var5, boolean var6) {
super(var4, var5); // L: 23
this.field3185 = false; // L: 14
this.field3192 = false; // L: 15
this.field3191 = -1; // L: 20
this.archiveDisk = var1; // L: 24
this.masterDisk = var2; // L: 25
this.index = var3; // L: 26
this.field3192 = var6; // L: 27
int var8 = this.index; // L: 29
if (WorldMapLabel.NetCache_reference != null) { // L: 31
WorldMapLabel.NetCache_reference.offset = var8 * 8 + 5; // L: 32
int var9 = WorldMapLabel.NetCache_reference.readInt(); // L: 33
int var10 = WorldMapLabel.NetCache_reference.readInt(); // L: 34
this.loadIndex(var9, var10); // L: 35
} else {
Widget.requestNetFile((Archive)null, 255, 255, 0, (byte)0, true); // L: 38
NetCache.NetCache_archives[var8] = this; // L: 39
}
}
} // L: 41
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(IS)V",
garbageValue = "31242"
)
@Export("loadRegionFromGroup")
void loadRegionFromGroup(int var1) {
AttackOption.method2202(this.index, var1);
}
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(II)V",
garbageValue = "-1807571765"
)
@Export("loadRegionFromGroup")
void loadRegionFromGroup(int var1) {
int var2 = this.index; // L: 66
long var3 = (long)((var2 << 16) + var1); // L: 68
NetFileRequest var5 = (NetFileRequest)NetCache.NetCache_pendingWrites.get(var3); // L: 69
if (var5 != null) { // L: 70
NetCache.NetCache_pendingWritesQueue.addLast(var5); // L: 71
}
@ObfuscatedName("q")
@ObfuscatedSignature(
descriptor = "(II)I",
garbageValue = "-693356446"
)
@Export("groupLoadPercent")
int groupLoadPercent(int var1) {
if (super.groups[var1] != null) {
return 100;
} else if (this.validGroups[var1]) {
return 100;
} else {
int var3 = this.index;
long var4 = (long)((var3 << 16) + var1);
int var2;
if (SecureRandomCallable.NetCache_currentResponse != null && var4 == SecureRandomCallable.NetCache_currentResponse.key) {
var2 = NetCache.NetCache_responseArchiveBuffer.offset * 99 / (NetCache.NetCache_responseArchiveBuffer.array.length - SecureRandomCallable.NetCache_currentResponse.padding) + 1;
} else {
var2 = 0;
}
} // L: 73
return var2;
}
}
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "(II)I",
garbageValue = "2120197275"
)
@Export("groupLoadPercent")
int groupLoadPercent(int var1) {
if (super.groups[var1] != null) { // L: 277
return 100;
} else if (this.validGroups[var1]) { // L: 278
return 100;
} else {
int var3 = this.index; // L: 280
long var4 = (long)((var3 << 16) + var1); // L: 282
int var2;
if (NetCache.NetCache_currentResponse != null && NetCache.NetCache_currentResponse.key == var4) { // L: 283
var2 = class206.NetCache_responseArchiveBuffer.offset * 99 / (class206.NetCache_responseArchiveBuffer.array.length - NetCache.NetCache_currentResponse.padding) + 1; // L: 287
} else {
var2 = 0; // L: 284
}
@ObfuscatedName("a")
@ObfuscatedSignature(
descriptor = "(II)V",
garbageValue = "-1209383303"
)
@Export("loadGroup")
void loadGroup(int var1) {
if (this.archiveDisk != null && this.validGroups != null && this.validGroups[var1]) {
ArchiveDisk var2 = this.archiveDisk;
byte[] var4 = null;
NodeDeque var5 = ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue;
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue) {
for(ArchiveDiskAction var6 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.last(); var6 != null; var6 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.previous()) {
if ((long)var1 == var6.key && var2 == var6.archiveDisk && var6.type == 0) {
var4 = var6.data;
break;
}
}
}
return var2; // L: 289
}
}
if (var4 != null) {
this.load(var2, var1, var4, true);
} else {
byte[] var9 = var2.read(var1);
this.load(var2, var1, var9, true);
}
} else {
WorldMapSectionType.requestNetFile(this, this.index, var1, super.groupCrcs[var1], (byte)2, true);
}
@ObfuscatedName("m")
@ObfuscatedSignature(
descriptor = "(II)V",
garbageValue = "786262695"
)
@Export("loadGroup")
void loadGroup(int var1) {
if (this.archiveDisk != null && this.validGroups != null && this.validGroups[var1]) { // L: 76
ArchiveDisk var2 = this.archiveDisk; // L: 77
byte[] var4 = null; // L: 80
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue) { // L: 81
for (ArchiveDiskAction var6 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.last(); var6 != null; var6 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.previous()) { // L: 82
if (var6.key == (long)var1 && var2 == var6.archiveDisk && var6.type == 0) { // L: 83
var4 = var6.data; // L: 84
break; // L: 85
}
}
}
}
if (var4 != null) { // L: 89
this.load(var2, var1, var4, true); // L: 90
} else {
byte[] var5 = var2.read(var1); // L: 93
this.load(var2, var1, var5, true); // L: 94
}
} else {
Widget.requestNetFile(this, this.index, var1, super.groupCrcs[var1], (byte)2, true); // L: 97
}
@ObfuscatedName("co")
@ObfuscatedSignature(
descriptor = "(I)Z",
garbageValue = "1775407691"
)
public boolean method4461() {
return this.field3192;
}
} // L: 98
@ObfuscatedName("cx")
@ObfuscatedSignature(
descriptor = "(S)I",
garbageValue = "6696"
)
@Export("percentage")
public int percentage() {
if (this.field3192) {
return 100;
} else if (super.groups != null) {
return 99;
} else {
int var2 = this.index;
long var3 = (long)(var2 + 16711680);
int var1;
if (SecureRandomCallable.NetCache_currentResponse != null && var3 == SecureRandomCallable.NetCache_currentResponse.key) {
var1 = NetCache.NetCache_responseArchiveBuffer.offset * 99 / (NetCache.NetCache_responseArchiveBuffer.array.length - SecureRandomCallable.NetCache_currentResponse.padding) + 1;
} else {
var1 = 0;
}
@ObfuscatedName("cv")
@ObfuscatedSignature(
descriptor = "(B)Z",
garbageValue = "2"
)
public boolean method4304() {
return this.field3185; // L: 44
}
int var5 = var1;
if (var1 >= 100) {
var5 = 99;
}
@ObfuscatedName("cs")
@ObfuscatedSignature(
descriptor = "(I)I",
garbageValue = "564971922"
)
@Export("percentage")
public int percentage() {
if (this.field3185) { // L: 48
return 100;
} else if (super.groups != null) { // L: 49
return 99;
} else {
int var2 = this.index; // L: 51
long var3 = (long)(var2 + 16711680); // L: 53
int var1;
if (NetCache.NetCache_currentResponse != null && NetCache.NetCache_currentResponse.key == var3) { // L: 54
var1 = class206.NetCache_responseArchiveBuffer.offset * 99 / (class206.NetCache_responseArchiveBuffer.array.length - NetCache.NetCache_currentResponse.padding) + 1; // L: 58
} else {
var1 = 0; // L: 55
}
return var5;
}
}
int var5 = var1; // L: 60
if (var1 >= 100) { // L: 61
var5 = 99;
}
@ObfuscatedName("cg")
@ObfuscatedSignature(
descriptor = "(IIB)V",
garbageValue = "1"
)
@Export("loadIndex")
public void loadIndex(int var1, int var2) {
this.indexCrc = var1;
this.indexVersion = var2;
if (this.masterDisk != null) {
int var3 = this.index;
ArchiveDisk var4 = this.masterDisk;
byte[] var6 = null;
NodeDeque var7 = ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue;
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue) {
for(ArchiveDiskAction var8 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.last(); var8 != null; var8 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.previous()) {
if (var8.key == (long)var3 && var4 == var8.archiveDisk && var8.type == 0) {
var6 = var8.data;
break;
}
}
}
return var5; // L: 62
}
}
if (var6 != null) {
this.load(var4, var3, var6, true);
} else {
byte[] var11 = var4.read(var3);
this.load(var4, var3, var11, true);
}
} else {
WorldMapSectionType.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true);
}
@ObfuscatedName("cn")
@ObfuscatedSignature(
descriptor = "(III)V",
garbageValue = "-1317908799"
)
@Export("loadIndex")
public void loadIndex(int var1, int var2) {
this.indexCrc = var1; // L: 101
this.indexVersion = var2; // L: 102
if (this.masterDisk != null) { // L: 103
int var3 = this.index; // L: 104
ArchiveDisk var4 = this.masterDisk; // L: 105
byte[] var6 = null; // L: 108
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue) { // L: 109
for (ArchiveDiskAction var8 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.last(); var8 != null; var8 = (ArchiveDiskAction)ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.previous()) { // L: 110
if ((long)var3 == var8.key && var4 == var8.archiveDisk && var8.type == 0) { // L: 111
var6 = var8.data; // L: 112
break; // L: 113
}
}
}
}
if (var6 != null) { // L: 117
this.load(var4, var3, var6, true); // L: 118
} else {
byte[] var7 = var4.read(var3); // L: 121
this.load(var4, var3, var7, true); // L: 122
}
} else {
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true); // L: 125
}
@ObfuscatedName("ch")
@ObfuscatedSignature(
descriptor = "(I[BZZI)V",
garbageValue = "1626411173"
)
@Export("write")
public void write(int var1, byte[] var2, boolean var3, boolean var4) {
if (var3) {
if (this.field3192) {
throw new RuntimeException();
}
} // L: 126
if (this.masterDisk != null) {
int var5 = this.index;
ArchiveDisk var6 = this.masterDisk;
ArchiveDiskAction var7 = new ArchiveDiskAction();
var7.type = 0;
var7.key = (long)var5;
var7.data = var2;
var7.archiveDisk = var6;
NodeDeque var8 = ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue;
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue) {
ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.addFirst(var7);
}
@ObfuscatedName("co")
@ObfuscatedSignature(
descriptor = "(I[BZZI)V",
garbageValue = "1890692"
)
@Export("write")
public void write(int var1, byte[] var2, boolean var3, boolean var4) {
if (var3) { // L: 129
if (this.field3185) { // L: 130
throw new RuntimeException(); // L: 131
}
Object var21 = ArchiveDiskActionHandler.ArchiveDiskActionHandler_lock;
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_lock) {
if (ArchiveDiskActionHandler.field3187 == 0) {
ArchiveDiskActionHandler.ArchiveDiskActionHandler_thread = new Thread(new ArchiveDiskActionHandler());
ArchiveDiskActionHandler.ArchiveDiskActionHandler_thread.setDaemon(true);
ArchiveDiskActionHandler.ArchiveDiskActionHandler_thread.start();
ArchiveDiskActionHandler.ArchiveDiskActionHandler_thread.setPriority(5);
}
if (this.masterDisk != null) { // L: 133
KeyHandler.method872(this.index, var2, this.masterDisk);
}
ArchiveDiskActionHandler.field3187 = 600;
}
}
this.decodeIndex(var2); // L: 134
this.loadAllLocal(); // L: 135
} else {
var2[var2.length - 2] = (byte)(super.groupVersions[var1] >> 8); // L: 138
var2[var2.length - 1] = (byte)super.groupVersions[var1]; // L: 139
if (this.archiveDisk != null) { // L: 140
KeyHandler.method872(var1, var2, this.archiveDisk); // L: 141
this.validGroups[var1] = true; // L: 142
}
this.decodeIndex(var2);
this.loadAllLocal();
} else {
var2[var2.length - 2] = (byte)(super.groupVersions[var1] >> 8);
var2[var2.length - 1] = (byte)super.groupVersions[var1];
if (this.archiveDisk != null) {
ArchiveDisk var13 = this.archiveDisk;
ArchiveDiskAction var18 = new ArchiveDiskAction();
var18.type = 0;
var18.key = (long)var1;
var18.data = var2;
var18.archiveDisk = var13;
NodeDeque var19 = ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue;
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue) {
ArchiveDiskActionHandler.ArchiveDiskActionHandler_requestQueue.addFirst(var18);
}
if (var4) { // L: 144
Object[] var5 = super.groups; // L: 145
Object var7;
if (var2 == null) { // L: 149
var7 = null; // L: 150
} else if (var2.length > 136) { // L: 153
DirectByteArrayCopier var8 = new DirectByteArrayCopier(); // L: 155
var8.set(var2); // L: 156
var7 = var8; // L: 157
} else {
var7 = var2; // L: 171
}
Object var20 = ArchiveDiskActionHandler.ArchiveDiskActionHandler_lock;
synchronized(ArchiveDiskActionHandler.ArchiveDiskActionHandler_lock) {
if (ArchiveDiskActionHandler.field3187 == 0) {
ArchiveDiskActionHandler.ArchiveDiskActionHandler_thread = new Thread(new ArchiveDiskActionHandler());
ArchiveDiskActionHandler.ArchiveDiskActionHandler_thread.setDaemon(true);
ArchiveDiskActionHandler.ArchiveDiskActionHandler_thread.start();
ArchiveDiskActionHandler.ArchiveDiskActionHandler_thread.setPriority(5);
}
var5[var1] = var7; // L: 173
}
}
ArchiveDiskActionHandler.field3187 = 600;
}
} // L: 176
this.validGroups[var1] = true;
}
@ObfuscatedName("dh")
@ObfuscatedSignature(
descriptor = "(Llx;I[BZI)V",
garbageValue = "1276790127"
)
@Export("load")
void load(ArchiveDisk var1, int var2, byte[] var3, boolean var4) {
int var5;
if (var1 == this.masterDisk) { // L: 179
if (this.field3185) { // L: 180
throw new RuntimeException(); // L: 181
}
if (var4) {
super.groups[var1] = class92.method2195(var2, false);
}
}
if (var3 == null) { // L: 183
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true); // L: 184
return; // L: 185
}
}
Archive_crc.reset(); // L: 187
Archive_crc.update(var3, 0, var3.length); // L: 188
var5 = (int)Archive_crc.getValue(); // L: 189
if (var5 != this.indexCrc) { // L: 190
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true); // L: 191
return; // L: 192
}
@ObfuscatedName("cl")
@ObfuscatedSignature(
descriptor = "(Llu;I[BZI)V",
garbageValue = "-2146867560"
)
@Export("load")
public void load(ArchiveDisk var1, int var2, byte[] var3, boolean var4) {
int var5;
if (var1 == this.masterDisk) {
if (this.field3192) {
throw new RuntimeException();
}
Buffer var11 = new Buffer(PrivateChatMode.decompressBytes(var3)); // L: 194
int var12 = var11.readUnsignedByte(); // L: 195
if (var12 != 5 && var12 != 6) { // L: 196
throw new RuntimeException(var12 + "," + this.index + "," + var2);
}
if (var3 == null) {
WorldMapSectionType.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true);
return;
}
int var8 = 0; // L: 197
if (var12 >= 6) { // L: 198
var8 = var11.readInt();
}
Archive_crc.reset();
Archive_crc.update(var3, 0, var3.length);
var5 = (int)Archive_crc.getValue();
if (var5 != this.indexCrc) {
WorldMapSectionType.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true);
return;
}
if (var8 != this.indexVersion) { // L: 199
Widget.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true); // L: 200
return; // L: 201
}
Buffer var9 = new Buffer(WorldMapDecorationType.decompressBytes(var3));
int var7 = var9.readUnsignedByte();
if (var7 != 5 && var7 != 6) {
throw new RuntimeException(var7 + "," + this.index + "," + var2);
}
this.decodeIndex(var3); // L: 203
this.loadAllLocal(); // L: 204
} else {
if (!var4 && var2 == this.field3191) { // L: 207
this.field3185 = true; // L: 208
}
int var8 = 0;
if (var7 >= 6) {
var8 = var9.readInt();
}
if (var3 == null || var3.length <= 2) { // L: 210
this.validGroups[var2] = false; // L: 211
if (this.field3192 || var4) { // L: 212
Widget.requestNetFile(this, this.index, var2, super.groupCrcs[var2], (byte)2, var4);
}
if (var8 != this.indexVersion) {
WorldMapSectionType.requestNetFile(this, 255, this.index, this.indexCrc, (byte)0, true);
return;
}
return; // L: 213
}
this.decodeIndex(var3);
this.loadAllLocal();
} else {
if (!var4 && var2 == this.field3200) {
this.field3192 = true;
}
Archive_crc.reset(); // L: 215
Archive_crc.update(var3, 0, var3.length - 2); // L: 216
var5 = (int)Archive_crc.getValue(); // L: 217
int var6 = ((var3[var3.length - 2] & 255) << 8) + (var3[var3.length - 1] & 255); // L: 218
if (var5 != super.groupCrcs[var2] || var6 != super.groupVersions[var2]) { // L: 219
this.validGroups[var2] = false; // L: 220
if (this.field3192 || var4) { // L: 221
Widget.requestNetFile(this, this.index, var2, super.groupCrcs[var2], (byte)2, var4);
}
if (var3 == null || var3.length <= 2) {
this.validGroups[var2] = false;
if (this.field3196 || var4) {
WorldMapSectionType.requestNetFile(this, this.index, var2, super.groupCrcs[var2], (byte)2, var4);
}
return; // L: 222
}
return;
}
this.validGroups[var2] = true; // L: 224
if (var4) { // L: 225
Object[] var7 = super.groups; // L: 226
Object var9;
if (var3 == null) { // L: 230
var9 = null; // L: 231
} else if (var3.length > 136) { // L: 234
DirectByteArrayCopier var10 = new DirectByteArrayCopier(); // L: 236
var10.set(var3); // L: 237
var9 = var10; // L: 238
} else {
var9 = var3; // L: 252
}
Archive_crc.reset();
Archive_crc.update(var3, 0, var3.length - 2);
var5 = (int)Archive_crc.getValue();
int var6 = ((var3[var3.length - 2] & 255) << 8) + (var3[var3.length - 1] & 255);
if (var5 != super.groupCrcs[var2] || var6 != super.groupVersions[var2]) {
this.validGroups[var2] = false;
if (this.field3196 || var4) {
WorldMapSectionType.requestNetFile(this, this.index, var2, super.groupCrcs[var2], (byte)2, var4);
}
var7[var2] = var9; // L: 254
}
}
return;
}
} // L: 257
this.validGroups[var2] = true;
if (var4) {
super.groups[var2] = class92.method2195(var3, false);
}
}
@ObfuscatedName("dl")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "-457246550"
)
@Export("loadAllLocal")
void loadAllLocal() {
this.validGroups = new boolean[super.groups.length]; // L: 260
}
int var1;
for (var1 = 0; var1 < this.validGroups.length; ++var1) { // L: 261
this.validGroups[var1] = false;
}
@ObfuscatedName("cw")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "-1754503913"
)
@Export("loadAllLocal")
void loadAllLocal() {
this.validGroups = new boolean[super.groups.length];
if (this.archiveDisk == null) { // L: 262
this.field3185 = true; // L: 263
} else {
this.field3191 = -1; // L: 266
int var1;
for(var1 = 0; var1 < this.validGroups.length; ++var1) {
this.validGroups[var1] = false;
}
for (var1 = 0; var1 < this.validGroups.length; ++var1) { // L: 267
if (super.fileCounts[var1] > 0) { // L: 268
Skills.method4147(var1, this.archiveDisk, this); // L: 269
this.field3191 = var1; // L: 270
}
}
if (this.archiveDisk == null) {
this.field3192 = true;
} else {
this.field3200 = -1;
if (this.field3191 == -1) { // L: 273
this.field3185 = true;
}
for(var1 = 0; var1 < this.validGroups.length; ++var1) {
if (super.fileCounts[var1] > 0) {
Tiles.method1218(var1, this.archiveDisk, this);
this.field3200 = var1;
}
}
}
} // L: 264 274
if (this.field3200 == -1) {
this.field3192 = true;
}
@ObfuscatedName("du")
@ObfuscatedSignature(
descriptor = "(II)Z",
garbageValue = "-215383381"
)
public boolean method4319(int var1) {
return this.validGroups[var1]; // L: 293
}
}
}
@ObfuscatedName("de")
@ObfuscatedSignature(
descriptor = "(IB)Z",
garbageValue = "2"
)
public boolean method4305(int var1) {
return this.getGroupFileIds(var1) != null; // L: 297
}
@ObfuscatedName("ct")
@ObfuscatedSignature(
descriptor = "(II)Z",
garbageValue = "-321850782"
)
public boolean method4470(int var1) {
return this.validGroups[var1];
}
@ObfuscatedName("dw")
@ObfuscatedSignature(
descriptor = "(I)I",
garbageValue = "1590832710"
)
@Export("loadPercent")
public int loadPercent() {
int var1 = 0; // L: 301
int var2 = 0; // L: 302
@ObfuscatedName("dx")
@ObfuscatedSignature(
descriptor = "(II)Z",
garbageValue = "106266787"
)
public boolean method4471(int var1) {
return this.getGroupFileIds(var1) != null;
}
int var3;
for (var3 = 0; var3 < super.groups.length; ++var3) { // L: 303
if (super.fileCounts[var3] > 0) { // L: 304
var1 += 100; // L: 305
var2 += this.groupLoadPercent(var3); // L: 306
}
}
@ObfuscatedName("do")
@ObfuscatedSignature(
descriptor = "(I)I",
garbageValue = "2024354781"
)
@Export("loadPercent")
public int loadPercent() {
int var1 = 0;
int var2 = 0;
if (var1 == 0) { // L: 309
return 100;
} else {
var3 = var2 * 100 / var1; // L: 310
return var3; // L: 311
}
}
int var3;
for(var3 = 0; var3 < super.groups.length; ++var3) {
if (super.fileCounts[var3] > 0) {
var1 += 100;
var2 += this.groupLoadPercent(var3);
}
}
@ObfuscatedName("h")
@ObfuscatedSignature(
descriptor = "(II)Z",
garbageValue = "-1996112671"
)
@Export("isWorldMapEvent")
public static boolean isWorldMapEvent(int var0) {
return var0 == 10 || var0 == 11 || var0 == 12 || var0 == 13 || var0 == 14 || var0 == 15 || var0 == 16 || var0 == 17; // L: 19
}
if (var1 == 0) {
return 100;
} else {
var3 = var2 * 100 / var1;
return var3;
}
}
}