Skip to content

Commit

Permalink
fixed issues of detecting shrine and lightroots
Browse files Browse the repository at this point in the history
  • Loading branch information
youquzhiji committed Jun 18, 2023
1 parent 40ffd80 commit 56dc4b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/SavefileIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,8 @@ bool SavefileIO::ParseFile(const char *filepath)
Data::Shrine *shrine = Data::ShrineExists(hashValue);
if (shrine)
{
// Read the 4 bytes after the hash. If it is not 0, then the shrine has been found.
bool defeated = ReadU32(buffer, offset + 4) != 0;

bool defeated = ReadU32(buffer, offset + 4) == 1654019904;

defeated ? foundShrines.push_back(shrine) : missingShrines.push_back(shrine);
}
Expand All @@ -607,7 +607,7 @@ bool SavefileIO::ParseFile(const char *filepath)
if (lightroot)
{
// Read the 4 bytes after the hash. If it is not 0, then the shrine has been found.
bool found = ReadU32(buffer, offset + 4) != 0;
bool found = ReadU32(buffer, offset + 4) == 404286466;

found ? foundLightroots.push_back(lightroot) : missingLightroots.push_back(lightroot);
}
Expand Down

0 comments on commit 56dc4b3

Please sign in to comment.