mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 05:20:24 -07:00
Rename Class80 to Js5CacheQueue
This commit is contained in:
parent
0b688d4194
commit
374f1206e7
5 changed files with 8 additions and 8 deletions
134
client/src/main/java/Js5CacheQueue.java
Normal file
134
client/src/main/java/Js5CacheQueue.java
Normal file
|
|
@ -0,0 +1,134 @@
|
|||
import org.openrs2.deob.annotation.OriginalArg;
|
||||
import org.openrs2.deob.annotation.OriginalClass;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
@OriginalClass("client!k")
|
||||
public final class Js5CacheQueue implements Runnable {
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "q", descriptor = "Lclient!ce;")
|
||||
private final SecondaryLinkedList aClass16_6 = new SecondaryLinkedList();
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "s", descriptor = "I")
|
||||
public int anInt3131 = 0;
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "w", descriptor = "Z")
|
||||
private boolean aBoolean161 = false;
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "v", descriptor = "Ljava/lang/Thread;")
|
||||
private Thread aThread2;
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "<init>", descriptor = "()V")
|
||||
public Js5CacheQueue() {
|
||||
@Pc(20) PrivilegedRequest local20 = Static71.aClass213_3.method5130(5, this);
|
||||
while (local20.anInt5925 == 0) {
|
||||
Static231.method3983(10L);
|
||||
}
|
||||
if (local20.anInt5925 == 2) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
this.aThread2 = (Thread) local20.anObject6;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "a", descriptor = "(Lclient!c;I)V")
|
||||
private void method2461(@OriginalArg(0) Class3_Sub2_Sub5_Sub1 arg0) {
|
||||
@Pc(7) SecondaryLinkedList local7 = this.aClass16_6;
|
||||
synchronized (this.aClass16_6) {
|
||||
this.aClass16_6.method798(arg0);
|
||||
this.anInt3131++;
|
||||
this.aClass16_6.notifyAll();
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "a", descriptor = "(I)V")
|
||||
public final void method2466() {
|
||||
this.aBoolean161 = true;
|
||||
@Pc(6) SecondaryLinkedList local6 = this.aClass16_6;
|
||||
synchronized (this.aClass16_6) {
|
||||
this.aClass16_6.notifyAll();
|
||||
}
|
||||
try {
|
||||
this.aThread2.join();
|
||||
} catch (@Pc(23) InterruptedException local23) {
|
||||
}
|
||||
this.aThread2 = null;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "a", descriptor = "(Lclient!ge;I[BI)Lclient!c;")
|
||||
public final Class3_Sub2_Sub5_Sub1 method2467(@OriginalArg(0) Class49 arg0, @OriginalArg(2) byte[] arg1, @OriginalArg(3) int arg2) {
|
||||
@Pc(7) Class3_Sub2_Sub5_Sub1 local7 = new Class3_Sub2_Sub5_Sub1();
|
||||
local7.aByteArray11 = arg1;
|
||||
local7.aBoolean225 = false;
|
||||
local7.aLong185 = arg2;
|
||||
local7.aClass49_3 = arg0;
|
||||
local7.anInt824 = 2;
|
||||
this.method2461(local7);
|
||||
return local7;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "a", descriptor = "(IILclient!ge;)Lclient!c;")
|
||||
public final Class3_Sub2_Sub5_Sub1 method2469(@OriginalArg(0) int arg0, @OriginalArg(2) Class49 arg1) {
|
||||
@Pc(7) Class3_Sub2_Sub5_Sub1 local7 = new Class3_Sub2_Sub5_Sub1();
|
||||
local7.aClass49_3 = arg1;
|
||||
local7.anInt824 = 3;
|
||||
local7.aBoolean225 = false;
|
||||
local7.aLong185 = arg0;
|
||||
this.method2461(local7);
|
||||
return local7;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "a", descriptor = "(Lclient!ge;BI)Lclient!c;")
|
||||
public final Class3_Sub2_Sub5_Sub1 method2471(@OriginalArg(0) Class49 arg0, @OriginalArg(2) int arg1) {
|
||||
@Pc(9) Class3_Sub2_Sub5_Sub1 local9 = new Class3_Sub2_Sub5_Sub1();
|
||||
local9.anInt824 = 1;
|
||||
@Pc(16) SecondaryLinkedList local16 = this.aClass16_6;
|
||||
synchronized (this.aClass16_6) {
|
||||
@Pc(31) Class3_Sub2_Sub5_Sub1 local31 = (Class3_Sub2_Sub5_Sub1) this.aClass16_6.method795();
|
||||
while (true) {
|
||||
if (local31 == null) {
|
||||
break;
|
||||
}
|
||||
if (local31.aLong185 == (long) arg1 && local31.aClass49_3 == arg0 && local31.anInt824 == 2) {
|
||||
local9.aByteArray11 = local31.aByteArray11;
|
||||
local9.aBoolean226 = false;
|
||||
return local9;
|
||||
}
|
||||
local31 = (Class3_Sub2_Sub5_Sub1) this.aClass16_6.method797();
|
||||
}
|
||||
}
|
||||
local9.aByteArray11 = arg0.method1701(arg1);
|
||||
local9.aBoolean226 = false;
|
||||
local9.aBoolean225 = true;
|
||||
return local9;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "run", descriptor = "()V")
|
||||
@Override
|
||||
public final void run() {
|
||||
while (!this.aBoolean161) {
|
||||
@Pc(12) SecondaryLinkedList local12 = this.aClass16_6;
|
||||
@Pc(19) Class3_Sub2_Sub5_Sub1 local19;
|
||||
synchronized (this.aClass16_6) {
|
||||
local19 = (Class3_Sub2_Sub5_Sub1) this.aClass16_6.method796();
|
||||
if (local19 == null) {
|
||||
try {
|
||||
this.aClass16_6.wait();
|
||||
} catch (@Pc(35) InterruptedException local35) {
|
||||
}
|
||||
continue;
|
||||
}
|
||||
this.anInt3131--;
|
||||
}
|
||||
try {
|
||||
if (local19.anInt824 == 2) {
|
||||
local19.aClass49_3.method1700((int) local19.aLong185, local19.aByteArray11.length, local19.aByteArray11);
|
||||
} else if (local19.anInt824 == 3) {
|
||||
local19.aByteArray11 = local19.aClass49_3.method1701((int) local19.aLong185);
|
||||
}
|
||||
} catch (@Pc(83) Exception local83) {
|
||||
Static89.method1839(null, local83);
|
||||
}
|
||||
local19.aBoolean226 = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue