mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Io: Fail open earlier from ms0: w/ no access flags.
The PSP returns this error code if you use 0 for the open flags on ms0:/.
This commit is contained in:
parent
cbe31af8cf
commit
8fa24045b1
1 changed files with 5 additions and 0 deletions
|
@ -115,6 +115,11 @@ Path DirectoryFileSystem::GetLocalPath(std::string internalPath) const {
|
|||
bool DirectoryFileHandle::Open(const Path &basePath, std::string &fileName, FileAccess access, u32 &error) {
|
||||
error = 0;
|
||||
|
||||
if (access == FILEACCESS_NONE) {
|
||||
error = SCE_KERNEL_ERROR_ERRNO_INVALID_ARGUMENT;
|
||||
return false;
|
||||
}
|
||||
|
||||
#if HOST_IS_CASE_SENSITIVE
|
||||
if (access & (FILEACCESS_APPEND | FILEACCESS_CREATE | FILEACCESS_WRITE)) {
|
||||
DEBUG_LOG(FILESYS, "Checking case for path %s", fileName.c_str());
|
||||
|
|
Loading…
Add table
Reference in a new issue