Skip to content

Commit

Permalink
Merge pull request #259 from marclurr/fix-embedding
Browse files Browse the repository at this point in the history
Fix embedding
  • Loading branch information
MikuAuahDark committed Dec 10, 2023
2 parents 7a32a37 + 7a00685 commit a81931b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions love/src/main/java/org/love2d/android/GameActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ protected void onCreate(Bundle savedInstanceState) {
gamePath = "";
storagePermissionUnnecessary = false;
embed = getResources().getBoolean(R.bool.embed);
needToCopyGameInArchive = embed;

if (!embed) {
handleIntent(getIntent());
Expand Down Expand Up @@ -200,11 +201,6 @@ public void onClick(DialogInterface dialog, int id) {
alert_dialog.setCancelable(false);
alert_dialog.create().show();
}
} else {
// No game specified via the intent data or embed build is used.
// Load game archive only when needed.
needToCopyGameInArchive = embed;
gamePath = "";
}

Log.d("GameActivity", "new gamePath: " + gamePath);
Expand Down

0 comments on commit a81931b

Please sign in to comment.