Add handling for Android content URIs to VFSReadFile, fixing savestate thumbnails.

This commit is contained in:
Henrik Rydgård committed 2021-07-19 17:34:51 +02:00
1 parent b0558b2174
commit e1b4a9175a
6 files changed
+12 -11

No files matched your search

+2 -1
View File
@@ -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 {