From 85e466f113185566272498d05bac265eda41446f Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Thu, 20 Feb 2025 19:26:24 -0600 Subject: [PATCH] Fix the Bloodborne fix --- src/core/libraries/kernel/file_system.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/libraries/kernel/file_system.cpp b/src/core/libraries/kernel/file_system.cpp index 02b833969..46abb786d 100644 --- a/src/core/libraries/kernel/file_system.cpp +++ b/src/core/libraries/kernel/file_system.cpp @@ -130,9 +130,7 @@ s32 PS4_SYSV_ABI open(const char* raw_path, s32 flags, u16 mode) { } // Create file if it doesn't exist Common::FS::IOFile out(file->m_host_name, Common::FS::FileAccessMode::Write); - } - - if (!exists) { + } else if (!exists) { // File to open doesn't exist, return ENOENT h->DeleteHandle(handle); *__Error() = POSIX_ENOENT;