mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-14 15:05:14 -06:00
Replaced getDeclaredConstructor with constructors
This commit is contained in:
parent
fd3572f709
commit
37883b9f35
7 changed files with 7 additions and 19 deletions
|
|
@ -141,18 +141,7 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
|||
|
||||
@OriginalMember(owner = "client!sd", name = "e", descriptor = "(I)V")
|
||||
public static void getMaxMemory() {
|
||||
try {
|
||||
@Pc(12) Method method = Runtime.class.getMethod("maxMemory");
|
||||
if (method != null) {
|
||||
try {
|
||||
@Pc(17) Runtime runtime = Runtime.getRuntime();
|
||||
@Pc(24) Long bytes = (Long) method.invoke(runtime, (Object[]) null);
|
||||
maxMemory = (int) (bytes / 1048576L) + 1;
|
||||
} catch (@Pc(34) Throwable ex) {
|
||||
}
|
||||
}
|
||||
} catch (@Pc(36) Exception ex) {
|
||||
}
|
||||
maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1048576L) + 1;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!la", name = "a", descriptor = "(Lsignlink!ll;Ljava/lang/Object;I)V")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue