Skip to content

Commit

Permalink
Fixed tiny bug with Q307 saves
Browse files Browse the repository at this point in the history
  • Loading branch information
not_alphanine committed Jul 24, 2024
1 parent 8b1d17e commit 3015ad8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/filesystem/fs_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/filesystem/fs_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 3015ad8

Please sign in to comment.