mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-25 03:25:17 +00:00
Update file_system.cpp
This commit is contained in:
parent
475c42bc38
commit
801687da3f
@ -175,7 +175,7 @@ s32 PS4_SYSV_ABI posix_open(const char* filename, s32 flags, u16 mode) {
|
||||
s32 PS4_SYSV_ABI sceKernelOpen(const char* path, s32 flags, /* SceKernelMode*/ u16 mode) {
|
||||
s32 result = open(path, flags, mode);
|
||||
if (result < 0) {
|
||||
LOG_ERROR(Kernel_Pthread, "posix_open: error = {}", *__Error());
|
||||
LOG_ERROR(Kernel_Pthread, "open: error = {}", *__Error());
|
||||
return ErrnoToSceKernelError(*__Error());
|
||||
}
|
||||
return result;
|
||||
@ -209,9 +209,9 @@ s32 PS4_SYSV_ABI posix_close(s32 fd) {
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceKernelClose(s32 fd) {
|
||||
s32 result = posix_close(fd);
|
||||
s32 result = close(fd);
|
||||
if (result < 0) {
|
||||
LOG_ERROR(Kernel_Pthread, "posix_close: error = {}", *__Error());
|
||||
LOG_ERROR(Kernel_Pthread, "close: error = {}", *__Error());
|
||||
return ErrnoToSceKernelError(*__Error());
|
||||
}
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user