Started moving around static methods/fields

This commit is contained in:
Pazaz 2022-04-25 00:49:33 -04:00
parent bed128bd19
commit 6ba1f2f808
305 changed files with 5027 additions and 5075 deletions

View file

@ -0,0 +1,26 @@
import org.openrs2.deob.annotation.OriginalArg;
import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
public class ThreadUtils {
@OriginalMember(owner = "client!sk", name = "a", descriptor = "(JI)V")
public static void sleep(@OriginalArg(0) long arg0) {
if (arg0 <= 0L) {
return;
}
if (arg0 % 10L == 0L) {
sleepUninterruptibly(arg0 - 1L);
sleepUninterruptibly(1L);
} else {
sleepUninterruptibly(arg0);
}
}
@OriginalMember(owner = "client!rm", name = "a", descriptor = "(JB)V")
public static void sleepUninterruptibly(@OriginalArg(0) long arg0) {
try {
Thread.sleep(arg0);
} catch (@Pc(11) InterruptedException local11) {
}
}
}