mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 01:27:18 -04:00
Fix it AGAIN
This commit is contained in:
parent
a5c97f85f2
commit
fea686c66b
@ -307,7 +307,7 @@ public class PojavLoginActivity extends BaseActivity
|
|||||||
private boolean isJavaRuntimeInstalled(AssetManager am) {
|
private boolean isJavaRuntimeInstalled(AssetManager am) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
return firstLaunchPrefs.getBoolean(PREF_IS_INSTALLED_JAVARUNTIME, false) && Tools.read(new FileInputStream(Tools.homeJreDir+"/version")).equals(Tools.read(am.open("components/jre/version"));
|
return firstLaunchPrefs.getBoolean(PREF_IS_INSTALLED_JAVARUNTIME, false) && Tools.read(new FileInputStream(Tools.homeJreDir+"/version")).equals(Tools.read(am.open("components/jre/version")));
|
||||||
}catch(IOException e) {
|
}catch(IOException e) {
|
||||||
Log.e("JVMCtl","failed to read file",e);
|
Log.e("JVMCtl","failed to read file",e);
|
||||||
return firstLaunchPrefs.getBoolean(PREF_IS_INSTALLED_JAVARUNTIME, false);
|
return firstLaunchPrefs.getBoolean(PREF_IS_INSTALLED_JAVARUNTIME, false);
|
||||||
@ -385,7 +385,7 @@ public class PojavLoginActivity extends BaseActivity
|
|||||||
uncompressTarXZ(jreTarFile, new File(Tools.homeJreDir));
|
uncompressTarXZ(jreTarFile, new File(Tools.homeJreDir));
|
||||||
}
|
}
|
||||||
setPref(PREF_IS_INSTALLED_JAVARUNTIME, true);
|
setPref(PREF_IS_INSTALLED_JAVARUNTIME, true);
|
||||||
Tools.copyAssetFile(this, "components/jre/version" + s, Tools.homeJreDir + "/version", true);
|
Tools.copyAssetFile(this, "components/jre/version", Tools.homeJreDir + "/version", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
JREUtils.relocateLibPath(this);
|
JREUtils.relocateLibPath(this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user