mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-10 13:16:04 -04:00
Set the runtime path after installing
This commit is contained in:
parent
dc7794b64a
commit
00806ea142
@ -12,7 +12,7 @@ import net.kdt.pojavlaunch.multirt.Runtime;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class JRE17Util {
|
public class JRE17Util {
|
||||||
private static final String NEW_JRE_NAME = "Internal-17";
|
public static final String NEW_JRE_NAME = "Internal-17";
|
||||||
public static boolean checkInternalNewJre(Context context, MultiRTUtils.RuntimeProgressReporter reporter) {
|
public static boolean checkInternalNewJre(Context context, MultiRTUtils.RuntimeProgressReporter reporter) {
|
||||||
AssetManager assetManager = context.getAssets();
|
AssetManager assetManager = context.getAssets();
|
||||||
String launcher_jre17_version;
|
String launcher_jre17_version;
|
||||||
|
@ -111,6 +111,10 @@ public class MinecraftDownloaderTask extends AsyncTask<String, String, Throwable
|
|||||||
if(verInfo.javaVersion.majorVersion <= 17) { // there's a chance we have an internal one for this case
|
if(verInfo.javaVersion.majorVersion <= 17) { // there's a chance we have an internal one for this case
|
||||||
if(!JRE17Util.checkInternalNewJre(mActivity, ((resId, stuff) -> publishProgress("0",mActivity.getString(resId,stuff)))))
|
if(!JRE17Util.checkInternalNewJre(mActivity, ((resId, stuff) -> publishProgress("0",mActivity.getString(resId,stuff)))))
|
||||||
showRuntimeFail();
|
showRuntimeFail();
|
||||||
|
else {
|
||||||
|
minecraftProfile.javaDir = Tools.LAUNCHERPROFILES_RTPREFIX+JRE17Util.NEW_JRE_NAME;
|
||||||
|
LauncherProfiles.update();
|
||||||
|
}
|
||||||
}else showRuntimeFail();
|
}else showRuntimeFail();
|
||||||
}
|
}
|
||||||
} //if else, we are satisfied
|
} //if else, we are satisfied
|
||||||
|
Loading…
x
Reference in New Issue
Block a user