Skip to content

Commit 8f4fbc6

Browse files
update empty scorekeys on save as well, just in case
1 parent 5ecb98a commit 8f4fbc6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/HighScore.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,11 @@ XNode *HighScoreImpl::CreateNode() const
307307

308308
XNode *HighScoreImpl::CreateEttNode() const {
309309
XNode *pNode = new XNode("Score");
310-
pNode->AppendAttr("Key", ScoreKey);
310+
311+
if (ScoreKey == "")
312+
pNode->AppendAttr("Key", "S" + BinaryToHex(CryptManager::GetSHA1ForString(dateTime.GetString())));
313+
else
314+
pNode->AppendAttr("Key", ScoreKey);
311315

312316
pNode->AppendChild("SSRCalcVersion", SSRCalcVersion);
313317
pNode->AppendChild("Grade", GradeToString(GetWifeGrade()));

0 commit comments

Comments
 (0)