mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 08:25:14 -06:00
Refactored a bit of the connection process, added a GlobalConfig class to control behavior
This commit is contained in:
parent
ec83b1f868
commit
80c6ba05ff
94 changed files with 592 additions and 578 deletions
|
|
@ -26,7 +26,7 @@ public class AudioChannel {
|
|||
private final int anInt4621 = 32;
|
||||
|
||||
@OriginalMember(owner = "client!vh", name = "f", descriptor = "J")
|
||||
private long aLong151 = MonotonicClock.method5096();
|
||||
private long aLong151 = MonotonicClock.currentTimeMillis();
|
||||
|
||||
@OriginalMember(owner = "client!vh", name = "w", descriptor = "[Lclient!qb;")
|
||||
private final PcmStream[] aClass3_Sub3Array5 = new PcmStream[8];
|
||||
|
|
@ -161,7 +161,7 @@ public class AudioChannel {
|
|||
if (this.aClass3_Sub3_6 != null) {
|
||||
this.aClass3_Sub3_6.method4408(arg0, 0, 256);
|
||||
}
|
||||
this.aLong151 = MonotonicClock.method5096();
|
||||
this.aLong151 = MonotonicClock.currentTimeMillis();
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!vh", name = "a", descriptor = "(B)V")
|
||||
|
|
@ -169,7 +169,7 @@ public class AudioChannel {
|
|||
if (this.anIntArray411 == null) {
|
||||
return;
|
||||
}
|
||||
@Pc(14) long local14 = MonotonicClock.method5096();
|
||||
@Pc(14) long local14 = MonotonicClock.currentTimeMillis();
|
||||
try {
|
||||
if (this.aLong153 != 0L) {
|
||||
if (local14 < this.aLong153) {
|
||||
|
|
@ -268,7 +268,7 @@ public class AudioChannel {
|
|||
this.method3563();
|
||||
} catch (@Pc(10) Exception local10) {
|
||||
this.method3572();
|
||||
this.aLong153 = MonotonicClock.method5096() + 2000L;
|
||||
this.aLong153 = MonotonicClock.currentTimeMillis() + 2000L;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue