Skip to content

Commit

Permalink
update empty scorekeys on save as well, just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 2, 2017
1 parent 5ecb98a commit 8f4fbc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/HighScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ XNode *HighScoreImpl::CreateNode() const

XNode *HighScoreImpl::CreateEttNode() const {
XNode *pNode = new XNode("Score");
pNode->AppendAttr("Key", ScoreKey);

if (ScoreKey == "")
pNode->AppendAttr("Key", "S" + BinaryToHex(CryptManager::GetSHA1ForString(dateTime.GetString())));
else
pNode->AppendAttr("Key", ScoreKey);

pNode->AppendChild("SSRCalcVersion", SSRCalcVersion);
pNode->AppendChild("Grade", GradeToString(GetWifeGrade()));
Expand Down

0 comments on commit 8f4fbc6

Please sign in to comment.