mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-06 09:22:35 +00:00
since result is remove count, probably don't use that
This commit is contained in:
parent
1bf724fb8b
commit
13c3f99530
@ -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,12 +338,8 @@ int PS4_SYSV_ABI sceKernelRmdir(const char* path, u16 mode) {
|
|||||||
if (error == 0) {
|
if (error == 0) {
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result < 0) {
|
|
||||||
return ErrnoToSceKernelError(error); // error - 0x7ffe0000;
|
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) {
|
||||||
LOG_INFO(Kernel_Fs, "(PARTIAL) path = {}", path);
|
LOG_INFO(Kernel_Fs, "(PARTIAL) path = {}", path);
|
||||||
|
Loading…
Reference in New Issue
Block a user