mirror of
https://github.com/love2d/love-android.git
synced 2026-08-17 11:11:23 +02:00
Flip the storage permission check.
This commit is contained in:
@@ -275,7 +275,7 @@ public class GameActivity extends SDLActivity {
|
||||
Log.d("GameActivity", "called getGamePath(), game path = " + gamePath);
|
||||
|
||||
if (gamePath.length() > 0) {
|
||||
if(self.hasExternalStoragePermission() || self.storagePermissionUnnecessary) {
|
||||
if(self.storagePermissionUnnecessary || self.hasExternalStoragePermission()) {
|
||||
return gamePath;
|
||||
} else {
|
||||
Log.d("GameActivity", "cannot open game " + gamePath + ": no external storage permission given!");
|
||||
|
||||
Reference in New Issue
Block a user