mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 15:18:45 +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)) {
|
if (!std::filesystem::exists(dir_name)) {
|
||||||
return 0;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int result = std::filesystem::remove_all(dir_name);
|
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) {
|
if (error == 0) {
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
return ErrnoToSceKernelError(error); // error - 0x7ffe0000;
|
||||||
if (result < 0) {
|
|
||||||
return ErrnoToSceKernelError(error); // error - 0x7ffe0000;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceKernelStat(const char* path, OrbisKernelStat* sb) {
|
int PS4_SYSV_ABI sceKernelStat(const char* path, OrbisKernelStat* sb) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue