mirror of
https://github.com/stenzek/duckstation.git
synced 2026-10-11 22:49:58 +00:00
FileSystem: Make OpenSharedCFile() wrap OpenCFile() on non-Windows
This commit is contained in:
@@ -1132,10 +1132,7 @@ std::FILE* FileSystem::OpenSharedCFile(const char* path, const char* mode, FileS
|
||||
Error::SetErrno(error, errno);
|
||||
return nullptr;
|
||||
#else
|
||||
std::FILE* fp = std::fopen(path, mode);
|
||||
if (!fp)
|
||||
Error::SetErrno(error, errno);
|
||||
return fp;
|
||||
return OpenCFile(path, mode, error);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user