mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-18 12:30:11 -07:00
[JRE Startup check] Enable JVM arguments check
This commit is contained in:
parent
2d73af1ea9
commit
8960365524
3 changed files with 57 additions and 44 deletions
|
|
@ -67,7 +67,6 @@ public final class Tools
|
|||
"1.9"
|
||||
};
|
||||
|
||||
public static ShellProcessOperation mLaunchShell;
|
||||
private static int exitCode = 0;
|
||||
public static void launchMinecraft(final LoggableActivity ctx, MCProfile.Builder profile, JMinecraftVersionList.Version versionInfo) throws Throwable {
|
||||
String[] launchArgs = getMinecraftArgs(profile, versionInfo);
|
||||
|
|
@ -94,7 +93,7 @@ public final class Tools
|
|||
getJavaArgs(ctx, javaArgList);
|
||||
javaArgList.addAll(args);
|
||||
|
||||
JREUtils.setJavaEnvironment(ctx);
|
||||
JREUtils.setJavaEnvironment(ctx, null);
|
||||
JREUtils.initJavaRuntime();
|
||||
JREUtils.chdir(Tools.MAIN_PATH);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue