From 3015ad85f73324ae8078bfd58d26daf1571621a6 Mon Sep 17 00:00:00 2001 From: not_alphanine Date: Wed, 24 Jul 2024 23:58:37 +0300 Subject: [PATCH] Fixed tiny bug with Q307 saves --- src/filesystem/fs_util.cpp | 3 ++- src/filesystem/fs_util.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/filesystem/fs_util.cpp b/src/filesystem/fs_util.cpp index 67ed587..cb5cc83 100644 --- a/src/filesystem/fs_util.cpp +++ b/src/filesystem/fs_util.cpp @@ -219,7 +219,8 @@ bool IsValidForNewGamePlus(std::string_view aSaveName, uint64_t& aPlaythroughHas simdjson::dom::array importantFacts{}; - if (!saveMetadata.at_key("facts").get_array().get(importantFacts) != simdjson::SUCCESS) + // Oops, forgot to remove a ! here... + if (saveMetadata.at_key("facts").get_array().get(importantFacts) != simdjson::SUCCESS) { if constexpr (shouldDebugMetadataValidation) { diff --git a/src/filesystem/fs_util.hpp b/src/filesystem/fs_util.hpp index 1e08cfd..5b42b33 100644 --- a/src/filesystem/fs_util.hpp +++ b/src/filesystem/fs_util.hpp @@ -5,4 +5,4 @@ namespace files { bool HasValidPointOfNoReturnSave(); bool IsValidForNewGamePlus(std::string_view aSaveName) noexcept; bool IsValidForNewGamePlus(std::string_view aSaveName, uint64_t& aPlaythroughHash) noexcept; - } \ No newline at end of file +} \ No newline at end of file