mirror of https://github.com/RPCS3/rpcs3.git
sys_fs_mkdir: implement ENOENT
This commit is contained in:
parent
3901f08fa0
commit
a428dac71c
|
@ -582,6 +582,7 @@ error_code sys_fs_mkdir(vm::cptr<char> path, s32 mode)
|
||||||
{
|
{
|
||||||
switch (auto error = fs::g_tls_error)
|
switch (auto error = fs::g_tls_error)
|
||||||
{
|
{
|
||||||
|
case fs::error::noent: return {CELL_ENOENT, path};
|
||||||
case fs::error::exist: return {CELL_EEXIST, path};
|
case fs::error::exist: return {CELL_EEXIST, path};
|
||||||
default: sys_fs.error("sys_fs_mkdir(): unknown error %s", error);
|
default: sys_fs.error("sys_fs_mkdir(): unknown error %s", error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue