Fix game loading through game selector.

This commit is contained in:
Miku AuahDark
2024-10-13 14:11:40 +08:00
parent f585f05839
commit dcd27223bf
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -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" />
@@ -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};