mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 00:03:37 +01:00
Add handling for Android content URIs to VFSReadFile, fixing savestate thumbnails.
This commit is contained in:
1 parent
b0558b2174
commit
e1b4a9175a
6 files changed
+12
-11
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include "Common/File/VFS/VFS.h"
|
||||
#include "Common/File/Path.h"
|
||||
#include "Common/File/FileUtil.h"
|
||||
#include "Common/Data/Format/JSONReader.h"
|
||||
|
||||
@@ -11,7 +12,7 @@ JsonReader::JsonReader(const std::string &filename) {
|
||||
parse();
|
||||
} else {
|
||||
// Okay, try to read on the local file system
|
||||
buffer_ = (char *)File::ReadLocalFile(filename.c_str(), &buf_size);
|
||||
buffer_ = (char *)File::ReadLocalFile(Path(filename), &buf_size);
|
||||
if (buffer_) {
|
||||
parse();
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user