mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-22 11:25:02 +00:00
sceKernelOpen handle directory doesn't exist case
This commit is contained in:
parent
a810e47876
commit
1e717ab046
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ int PS4_SYSV_ABI sceKernelOpen(const char* path, int flags, u16 mode) {
|
||||||
file->m_guest_name = path;
|
file->m_guest_name = path;
|
||||||
file->m_host_name = mnt->GetHostDirectory(file->m_guest_name);
|
file->m_host_name = mnt->GetHostDirectory(file->m_guest_name);
|
||||||
if (!std::filesystem::is_directory(file->m_host_name)) { // directory doesn't exist
|
if (!std::filesystem::is_directory(file->m_host_name)) { // directory doesn't exist
|
||||||
UNREACHABLE(); // not supported yet
|
h->DeleteHandle(handle);
|
||||||
|
return ORBIS_KERNEL_ERROR_ENOTDIR;
|
||||||
} else {
|
} else {
|
||||||
if (create) {
|
if (create) {
|
||||||
return handle; // dir already exists
|
return handle; // dir already exists
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue