mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-05-24 09:54:43 -04:00
Correct the version check for JRE
This commit is contained in:
@@ -428,14 +428,17 @@ public class PojavLoginActivity extends BaseActivity
|
||||
Log.i("LWJGL3Prep","Pack is up-to-date with the launcher, continuing...");
|
||||
}
|
||||
}
|
||||
|
||||
if(new File(Tools.homeJreDir+"/versions").isDirectory()) {
|
||||
FileUtils.deleteDirectory(new File(Tools.homeJreDir+"/versions"));
|
||||
Tools.copyAssetFile(this, "components/jre/version", Tools.homeJreDir + "/",s, true);
|
||||
}
|
||||
if (!isJavaRuntimeInstalled(am)) {
|
||||
if(!installRuntimeAutomatically(am)) {
|
||||
File jreTarFile = selectJreTarFile();
|
||||
uncompressTarXZ(jreTarFile, new File(Tools.homeJreDir));
|
||||
}
|
||||
setPref(PREF_IS_INSTALLED_JAVARUNTIME, true);
|
||||
Tools.copyAssetFile(this, "components/jre/version", Tools.homeJreDir + "/version", true);
|
||||
Tools.copyAssetFile(this, "components/jre/version", Tools.homeJreDir + "/",s, true);
|
||||
}
|
||||
|
||||
JREUtils.relocateLibPath(this);
|
||||
|
||||
Reference in New Issue
Block a user