mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-06 10:43:16 +00:00
Update file_system.cpp
This commit is contained in:
parent
475c42bc38
commit
801687da3f
1 changed files with 3 additions and 3 deletions
|
@ -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 PS4_SYSV_ABI sceKernelOpen(const char* path, s32 flags, /* SceKernelMode*/ u16 mode) {
|
||||||
s32 result = open(path, flags, mode);
|
s32 result = open(path, flags, mode);
|
||||||
if (result < 0) {
|
if (result < 0) {
|
||||||
LOG_ERROR(Kernel_Pthread, "posix_open: error = {}", *__Error());
|
LOG_ERROR(Kernel_Pthread, "open: error = {}", *__Error());
|
||||||
return ErrnoToSceKernelError(*__Error());
|
return ErrnoToSceKernelError(*__Error());
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -209,9 +209,9 @@ s32 PS4_SYSV_ABI posix_close(s32 fd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 PS4_SYSV_ABI sceKernelClose(s32 fd) {
|
s32 PS4_SYSV_ABI sceKernelClose(s32 fd) {
|
||||||
s32 result = posix_close(fd);
|
s32 result = close(fd);
|
||||||
if (result < 0) {
|
if (result < 0) {
|
||||||
LOG_ERROR(Kernel_Pthread, "posix_close: error = {}", *__Error());
|
LOG_ERROR(Kernel_Pthread, "close: error = {}", *__Error());
|
||||||
return ErrnoToSceKernelError(*__Error());
|
return ErrnoToSceKernelError(*__Error());
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue