mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-26 14:34:22 +02:00
fix for Android 13 support
This commit is contained in:
@@ -11,17 +11,13 @@
|
|||||||
<!--
|
<!--
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
-->
|
-->
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
||||||
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:icon="@drawable/ic_launcher"
|
android:icon="@drawable/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:banner="@drawable/banner"
|
android:banner="@drawable/banner"
|
||||||
android:isGame="true"
|
android:isGame="true">
|
||||||
android:requestLegacyExternalStorage="true">
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
|
@@ -85,8 +85,8 @@ public class MainActivity extends GvrActivity implements OnTouchListener, OnKeyL
|
|||||||
gvrView = view;
|
gvrView = view;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String content = Environment.getExternalStorageDirectory().getAbsolutePath();
|
String content = getExternalFilesDir(null).getAbsolutePath();
|
||||||
wrapper.onCreate(content + "/OpenLara/", getCacheDir().getAbsolutePath() + "/");
|
wrapper.onCreate(content + "/", getCacheDir().getAbsolutePath() + "/");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
finish();
|
finish();
|
||||||
|
Reference in New Issue
Block a user