mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Check file existence early. Although, not sure if this is the right
thing on Android...
This commit is contained in:
parent
10ecc4afbd
commit
16b0e1103a
@ -44,8 +44,13 @@ public:
|
||||
};
|
||||
|
||||
VFSFileReference *DirectoryReader::GetFile(const char *path) {
|
||||
Path filePath = path_ / path;
|
||||
if (!File::Exists(filePath)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
DirectoryReaderFileReference *reference = new DirectoryReaderFileReference();
|
||||
reference->path = path_ / path;
|
||||
reference->path = filePath;
|
||||
return reference;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user