mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 13:43:33 +01:00
IOS: Fix return code inaccuracy
Co-Authored-By: Mike <99037623+MikeIsAStar@users.noreply.github.com>
This commit is contained in:
parent
549b16d442
commit
c50689355b
@ -81,6 +81,12 @@ Result<FileHandle> HostFileSystem::OpenFile(Uid, Gid, const std::string& path, M
|
||||
return ResultCode::NoFreeHandle;
|
||||
|
||||
const std::string host_path = BuildFilename(path).host_path;
|
||||
if (File::IsDirectory(host_path))
|
||||
{
|
||||
*handle = Handle{};
|
||||
return ResultCode::Invalid;
|
||||
}
|
||||
|
||||
if (!File::IsFile(host_path))
|
||||
{
|
||||
*handle = Handle{};
|
||||
|
Loading…
x
Reference in New Issue
Block a user