mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
More work on AndroidStorageFileSystem.cpp. Fix current directory getting reset.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user