mirror of
https://github.com/DrBeef/JKXR.git
synced 2025-02-16 17:01:59 +00:00
Fix config overwrite issue
This commit is contained in:
parent
48f75ba6a3
commit
14fe1a87d4
2 changed files with 6 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.drbeef.jkquest"
|
package="com.drbeef.jkquest"
|
||||||
android:versionCode="32"
|
android:versionCode="33"
|
||||||
android:versionName="0.5.1" android:installLocation="auto" >
|
android:versionName="0.5.2" android:installLocation="auto" >
|
||||||
|
|
||||||
<!-- Tell the system this app requires OpenGL ES 3.1. -->
|
<!-- Tell the system this app requires OpenGL ES 3.1. -->
|
||||||
<uses-feature android:glEsVersion="0x00030002" android:required="true"/>
|
<uses-feature android:glEsVersion="0x00030002" android:required="true"/>
|
||||||
|
|
|
@ -212,10 +212,10 @@ import java.util.Vector;
|
||||||
String model = android.os.Build.MODEL;
|
String model = android.os.Build.MODEL;
|
||||||
if (model.contains("Quest")) {
|
if (model.contains("Quest")) {
|
||||||
//Meta Quest
|
//Meta Quest
|
||||||
copy_asset_device_specific("/sdcard/JKQuest/JK2/base", "openjo_sp_quest.cfg", "openjo_sp.cfg", false);
|
copy_asset_with_rename("/sdcard/JKQuest/JK2/base", "openjo_sp_quest.cfg", "openjo_sp.cfg", false);
|
||||||
} else {
|
} else {
|
||||||
//Pico XR
|
//Pico XR
|
||||||
copy_asset_device_specific("/sdcard/JKQuest/JK2/base", "openjo_sp_pico.cfg", "openjo_sp.cfg", false);
|
copy_asset_with_rename("/sdcard/JKQuest/JK2/base", "openjo_sp_pico.cfg", "openjo_sp.cfg", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Bunch of cool mods and their credits - only copy if user wants them
|
//Bunch of cool mods and their credits - only copy if user wants them
|
||||||
|
@ -274,8 +274,8 @@ import java.util.Vector;
|
||||||
mNativeHandle = GLES3JNILib.onCreate( this, commandLineParams );
|
mNativeHandle = GLES3JNILib.onCreate( this, commandLineParams );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void copy_asset_device_specific(String path, String name, String name_out, boolean force) {
|
public void copy_asset_with_rename(String path, String name, String name_out, boolean force) {
|
||||||
File f = new File(path + "/" + name);
|
File f = new File(path + "/" + name_out);
|
||||||
if (!f.exists() || force) {
|
if (!f.exists() || force) {
|
||||||
|
|
||||||
//Ensure we have an appropriate folder
|
//Ensure we have an appropriate folder
|
||||||
|
|
Loading…
Reference in a new issue