mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-22 04:24:44 +00:00
since result is remove count, probably don't use that
This commit is contained in:
parent
1bf724fb8b
commit
13c3f99530
1 changed files with 2 additions and 6 deletions
|
@ -329,7 +329,7 @@ int PS4_SYSV_ABI sceKernelRmdir(const char* path, u16 mode) {
|
|||
}
|
||||
|
||||
if (!std::filesystem::exists(dir_name)) {
|
||||
return 0;
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
int result = std::filesystem::remove_all(dir_name);
|
||||
|
@ -338,11 +338,7 @@ int PS4_SYSV_ABI sceKernelRmdir(const char* path, u16 mode) {
|
|||
if (error == 0) {
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
if (result < 0) {
|
||||
return ErrnoToSceKernelError(error); // error - 0x7ffe0000;
|
||||
}
|
||||
return result;
|
||||
return ErrnoToSceKernelError(error); // error - 0x7ffe0000;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceKernelStat(const char* path, OrbisKernelStat* sb) {
|
||||
|
|
Loading…
Add table
Reference in a new issue