More work on AndroidStorageFileSystem.cpp. Fix current directory getting reset.

This commit is contained in:
Henrik Rydgård committed 2021-06-07 00:24:51 +02:00
1 parent ef607a5fe2
commit beb0b4e9f3
8 files changed
+102 -82

No files matched your search

@@ -116,10 +116,10 @@ public class PpssppActivity extends NativeActivity {
});
}
public int openContentUri(String uriString) {
public int openContentUri(String uriString, String mode) {
try {
Uri uri = Uri.parse(uriString);
ParcelFileDescriptor filePfd = getContentResolver().openFileDescriptor(uri, "r");
ParcelFileDescriptor filePfd = getContentResolver().openFileDescriptor(uri, mode);
if (filePfd == null) {
Log.e(TAG, "Failed to get file descriptor for " + uriString);
return -1;