mirror of
https://github.com/love2d/love-android.git
synced 2026-08-19 12:14:49 +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);
|
Log.d("GameActivity", "called getGamePath(), game path = " + gamePath);
|
||||||
|
|
||||||
if (gamePath.length() > 0) {
|
if (gamePath.length() > 0) {
|
||||||
if(self.hasExternalStoragePermission() || self.storagePermissionUnnecessary) {
|
if(self.storagePermissionUnnecessary || self.hasExternalStoragePermission()) {
|
||||||
return gamePath;
|
return gamePath;
|
||||||
} else {
|
} else {
|
||||||
Log.d("GameActivity", "cannot open game " + gamePath + ": no external storage permission given!");
|
Log.d("GameActivity", "cannot open game " + gamePath + ": no external storage permission given!");
|
||||||
|
|||||||
Reference in New Issue
Block a user