runescape-client: fix the thing
This commit is contained in:
@@ -30,10 +30,10 @@ public class WorldMapArchiveLoader {
|
||||
descriptor = "(Lib;)V"
|
||||
)
|
||||
WorldMapArchiveLoader(AbstractArchive var1) {
|
||||
this.percentLoaded = 0;
|
||||
this.loaded = false;
|
||||
this.archive = var1;
|
||||
}
|
||||
this.percentLoaded = 0; // L: 13
|
||||
this.loaded = false; // L: 14
|
||||
this.archive = var1; // L: 17
|
||||
} // L: 18
|
||||
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
@@ -42,15 +42,15 @@ public class WorldMapArchiveLoader {
|
||||
)
|
||||
@Export("reset")
|
||||
void reset(String var1) {
|
||||
if (var1 != null && !var1.isEmpty()) {
|
||||
if (var1 != this.cacheName) {
|
||||
this.cacheName = var1;
|
||||
this.percentLoaded = 0;
|
||||
this.loaded = false;
|
||||
this.load();
|
||||
if (var1 != null && !var1.isEmpty()) { // L: 21
|
||||
if (var1 != this.cacheName) { // L: 24
|
||||
this.cacheName = var1; // L: 27
|
||||
this.percentLoaded = 0; // L: 28
|
||||
this.loaded = false; // L: 29
|
||||
this.load(); // L: 30
|
||||
}
|
||||
}
|
||||
}
|
||||
} // L: 22 25 31
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
@@ -59,32 +59,32 @@ public class WorldMapArchiveLoader {
|
||||
)
|
||||
@Export("load")
|
||||
int load() {
|
||||
if (this.percentLoaded < 33) {
|
||||
if (!this.archive.tryLoadFileByNames(WorldMapCacheName.field326.name, this.cacheName)) {
|
||||
return this.percentLoaded;
|
||||
if (this.percentLoaded < 33) { // L: 34
|
||||
if (!this.archive.tryLoadFileByNames(WorldMapCacheName.field326.name, this.cacheName)) { // L: 35
|
||||
return this.percentLoaded; // L: 36
|
||||
}
|
||||
|
||||
this.percentLoaded = 33;
|
||||
this.percentLoaded = 33; // L: 38
|
||||
}
|
||||
|
||||
if (this.percentLoaded == 33) {
|
||||
if (this.archive.isValidFileName(WorldMapCacheName.field327.name, this.cacheName) && !this.archive.tryLoadFileByNames(WorldMapCacheName.field327.name, this.cacheName)) {
|
||||
return this.percentLoaded;
|
||||
if (this.percentLoaded == 33) { // L: 40
|
||||
if (this.archive.isValidFileName(WorldMapCacheName.field327.name, this.cacheName) && !this.archive.tryLoadFileByNames(WorldMapCacheName.field327.name, this.cacheName)) { // L: 41 42
|
||||
return this.percentLoaded; // L: 43
|
||||
}
|
||||
|
||||
this.percentLoaded = 66;
|
||||
this.percentLoaded = 66; // L: 46
|
||||
}
|
||||
|
||||
if (this.percentLoaded == 66) {
|
||||
if (!this.archive.tryLoadFileByNames(this.cacheName, WorldMapCacheName.field325.name)) {
|
||||
return this.percentLoaded;
|
||||
if (this.percentLoaded == 66) { // L: 48
|
||||
if (!this.archive.tryLoadFileByNames(this.cacheName, WorldMapCacheName.field325.name)) { // L: 49
|
||||
return this.percentLoaded; // L: 50
|
||||
}
|
||||
|
||||
this.percentLoaded = 100;
|
||||
this.loaded = true;
|
||||
this.percentLoaded = 100; // L: 52
|
||||
this.loaded = true; // L: 53
|
||||
}
|
||||
|
||||
return this.percentLoaded;
|
||||
return this.percentLoaded; // L: 55
|
||||
}
|
||||
|
||||
@ObfuscatedName("x")
|
||||
@@ -94,7 +94,7 @@ public class WorldMapArchiveLoader {
|
||||
)
|
||||
@Export("isLoaded")
|
||||
boolean isLoaded() {
|
||||
return this.loaded;
|
||||
return this.loaded; // L: 59
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@@ -104,6 +104,6 @@ public class WorldMapArchiveLoader {
|
||||
)
|
||||
@Export("getPercentLoaded")
|
||||
int getPercentLoaded() {
|
||||
return this.percentLoaded;
|
||||
return this.percentLoaded; // L: 63
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user