mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-21 19:51:33 +00:00
Fix config overwrite issue
This commit is contained in:
parent
f12753967c
commit
5acd17a9df
2 changed files with 6 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.drbeef.jkquest"
|
||||
android:versionCode="32"
|
||||
android:versionName="0.5.1" android:installLocation="auto" >
|
||||
android:versionCode="33"
|
||||
android:versionName="0.5.2" android:installLocation="auto" >
|
||||
|
||||
<!-- Tell the system this app requires OpenGL ES 3.1. -->
|
||||
<uses-feature android:glEsVersion="0x00030002" android:required="true"/>
|
||||
|
|
|
@ -214,10 +214,10 @@ import java.util.Vector;
|
|||
String model = android.os.Build.MODEL;
|
||||
if (model.contains("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 {
|
||||
//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);
|
||||
}
|
||||
|
||||
//Read these from a file and pass through
|
||||
|
@ -266,8 +266,8 @@ import java.util.Vector;
|
|||
mNativeHandle = GLES3JNILib.onCreate( this, commandLineParams );
|
||||
}
|
||||
|
||||
public void copy_asset_device_specific(String path, String name, String name_out, boolean force) {
|
||||
File f = new File(path + "/" + name);
|
||||
public void copy_asset_with_rename(String path, String name, String name_out, boolean force) {
|
||||
File f = new File(path + "/" + name_out);
|
||||
if (!f.exists() || force) {
|
||||
|
||||
//Ensure we have an appropriate folder
|
||||
|
|
Loading…
Reference in a new issue