runescape-client: fix the thing

This commit is contained in:
ThatGamerBlue
2020-12-11 06:14:29 +00:00
parent f74baf08ce
commit 463bc42f5f
325 changed files with 35526 additions and 35531 deletions

View File

@@ -31,17 +31,17 @@ public final class EvictingDualNodeHashTable {
IterableDualNodeQueue deque;
public EvictingDualNodeHashTable(int var1) {
this.field1977 = new DualNode();
this.deque = new IterableDualNodeQueue();
this.capacity = var1;
this.remainingCapacity = var1;
this.field1977 = new DualNode(); // L: 8
this.deque = new IterableDualNodeQueue(); // L: 12
this.capacity = var1; // L: 15
this.remainingCapacity = var1; // L: 16
int var2;
for (var2 = 1; var2 + var2 < var1; var2 += var2) {
for (var2 = 1; var2 + var2 < var1; var2 += var2) { // L: 17 18
}
this.hashTable = new IterableNodeHashTable(var2);
}
this.hashTable = new IterableNodeHashTable(var2); // L: 19
} // L: 20
@ObfuscatedName("h")
@ObfuscatedSignature(
@@ -49,25 +49,25 @@ public final class EvictingDualNodeHashTable {
)
@Export("get")
public DualNode get(long var1) {
DualNode var3 = (DualNode)this.hashTable.get(var1);
if (var3 != null) {
this.deque.add(var3);
DualNode var3 = (DualNode)this.hashTable.get(var1); // L: 23
if (var3 != null) { // L: 24
this.deque.add(var3); // L: 25
}
return var3;
return var3; // L: 28
}
@ObfuscatedName("v")
@Export("remove")
public void remove(long var1) {
DualNode var3 = (DualNode)this.hashTable.get(var1);
if (var3 != null) {
var3.remove();
var3.removeDual();
++this.remainingCapacity;
DualNode var3 = (DualNode)this.hashTable.get(var1); // L: 32
if (var3 != null) { // L: 33
var3.remove(); // L: 34
var3.removeDual(); // L: 35
++this.remainingCapacity; // L: 36
}
}
} // L: 38
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -75,29 +75,29 @@ public final class EvictingDualNodeHashTable {
)
@Export("put")
public void put(DualNode var1, long var2) {
if (this.remainingCapacity == 0) {
DualNode var4 = this.deque.removeLast();
var4.remove();
var4.removeDual();
if (var4 == this.field1977) {
var4 = this.deque.removeLast();
var4.remove();
var4.removeDual();
if (this.remainingCapacity == 0) { // L: 41
DualNode var4 = this.deque.removeLast(); // L: 42
var4.remove(); // L: 43
var4.removeDual(); // L: 44
if (var4 == this.field1977) { // L: 45
var4 = this.deque.removeLast(); // L: 46
var4.remove(); // L: 47
var4.removeDual(); // L: 48
}
} else {
--this.remainingCapacity;
--this.remainingCapacity; // L: 51
}
this.hashTable.put(var1, var2);
this.deque.add(var1);
}
this.hashTable.put(var1, var2); // L: 52
this.deque.add(var1); // L: 53
} // L: 54
@ObfuscatedName("w")
@Export("clear")
public void clear() {
this.deque.clear();
this.hashTable.clear();
this.field1977 = new DualNode();
this.remainingCapacity = this.capacity;
}
this.deque.clear(); // L: 57
this.hashTable.clear(); // L: 58
this.field1977 = new DualNode(); // L: 59
this.remainingCapacity = this.capacity; // L: 60
} // L: 61
}