diff --git a/src/core/libraries/kernel/file_system.cpp b/src/core/libraries/kernel/file_system.cpp index b2000055..5f6fb33a 100644 --- a/src/core/libraries/kernel/file_system.cpp +++ b/src/core/libraries/kernel/file_system.cpp @@ -90,6 +90,14 @@ int PS4_SYSV_ABI sceKernelClose(int d) { } size_t PS4_SYSV_ABI sceKernelWrite(int d, void* buf, size_t nbytes) { + if (d <= 2) { // stdin,stdout,stderr + char* str = strdup((const char*)buf); + if (str[nbytes - 1] == '\n') + str[nbytes - 1] = 0; + LOG_INFO(Tty, "{}", str); + free(str); + return nbytes; + } if (buf == nullptr) { return SCE_KERNEL_ERROR_EFAULT; }