mirror of
https://github.com/love2d/love-android.git
synced 2026-08-17 19:24:07 +02:00
fixed loading of files from file managers
This commit is contained in:
@@ -17,8 +17,12 @@ public class GameLauncher extends GameActivity {
|
||||
protected void onCreate(Bundle bundle) {
|
||||
Uri game = this.getIntent().getData();
|
||||
if (game != null) {
|
||||
copyGameToCache (game);
|
||||
Log.d("GameLauncher", "Selected the file: " + getGamePath());
|
||||
if (game.getScheme().equals ("file")) {
|
||||
gamePath = game.getPath();
|
||||
} else {
|
||||
copyGameToCache (game);
|
||||
}
|
||||
Log.d("GameLauncher", "Selected the file: " + getGamePath());
|
||||
}
|
||||
super.onCreate(bundle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user