From e356494fe8bd8982c4266bf625e108a1a5e97175 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Wed, 30 Apr 2025 18:39:21 -0500 Subject: [PATCH] Log if any currently unhandled flags are encountered. These are rare and probably not too important, but log a warning when they're seen. --- src/core/libraries/kernel/file_system.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/libraries/kernel/file_system.cpp b/src/core/libraries/kernel/file_system.cpp index 6f28c6bad..5a737400f 100644 --- a/src/core/libraries/kernel/file_system.cpp +++ b/src/core/libraries/kernel/file_system.cpp @@ -84,6 +84,10 @@ s32 PS4_SYSV_ABI open(const char* raw_path, s32 flags, u16 mode) { bool direct = (flags & ORBIS_KERNEL_O_DIRECT) != 0; bool directory = (flags & ORBIS_KERNEL_O_DIRECTORY) != 0; + if (sync || direct || dsync || nonblock) { + LOG_WARNING(Kernel_Fs, "flags {:#x} not fully handled", flags); + } + std::string_view path{raw_path}; u32 handle = h->CreateHandle(); auto* file = h->GetFile(handle);