mirror of
https://github.com/love2d/love-android.git
synced 2026-08-12 00:20:57 +02:00
Fix game loading through game selector.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
<uses-feature android:name="android.hardware.audio.low_latency" android:required="false" />
|
||||
<uses-feature android:name="android.hardware.audio.pro" android:required="false" />
|
||||
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/love"
|
||||
@@ -35,6 +36,8 @@
|
||||
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboard|keyboardHidden|navigation"
|
||||
android:launchMode="singleInstance"
|
||||
android:screenOrientation="${ORIENTATION}">
|
||||
<!-- Allow app activity re-created -->
|
||||
<meta-data android:name="SDL_ENV.SDL_ANDROID_ALLOW_RECREATE_ACTIVITY" android:value="1" />
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
|
||||
+1
-1
Submodule app/src/main/cpp/love updated: 910af324dd...72d865eedc
@@ -451,7 +451,7 @@ public class GameActivity extends SDLActivity {
|
||||
if (scheme != null) {
|
||||
if (scheme.equals("content")) {
|
||||
// Convert the URI to file descriptor.
|
||||
args = new String[]{"/love2d://fd/" + convertToFileDescriptor(game)};
|
||||
args = new String[]{"love2d://fd/" + convertToFileDescriptor(game)};
|
||||
} else if (scheme.equals("file")) {
|
||||
// Regular file, pass as-is.
|
||||
args = new String[]{path};
|
||||
|
||||
Reference in New Issue
Block a user