mirror of
https://github.com/love2d/love-android.git
synced 2026-08-12 00:20:57 +02:00
@@ -172,6 +172,9 @@ public class GameActivity extends SDLActivity {
|
||||
filename = pathSegments[pathSegments.length - 1];
|
||||
}
|
||||
|
||||
// Sanitize filename to prevent PhysFS complaining later.
|
||||
filename = filename.replaceAll("[^a-zA-Z0-9_\\\\-\\\\.]", "_");
|
||||
|
||||
String destination_file = this.getCacheDir().getPath() + "/" + filename;
|
||||
InputStream data = getContentResolver().openInputStream(game);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user