Skip to content

Commit

Permalink
Fix game loading through game selector.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Oct 13, 2024
1 parent f585f05 commit dcd2722
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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" />
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/cpp/love
2 changes: 1 addition & 1 deletion app/src/main/java/org/love2d/android/GameActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ private void processOpenGame(Uri game) {
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};
Expand Down

0 comments on commit dcd2722

Please sign in to comment.