Skip to content

Commit

Permalink
generate input data from old replay data if missing when it's needed
Browse files Browse the repository at this point in the history
only for the reprioritization case
  • Loading branch information
poco0317 committed Dec 19, 2022
1 parent 141b63a commit fbf9f32
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/Etterna/Models/HighScore/Replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1232,10 +1232,23 @@ Replay::GeneratePrimitiveVectors() -> bool
}

if (!LoadInputData()) {
Locator::getLogger()->warn("Failed to generate primitive vectors for "
"score {} because input data is not present",
scoreKey);
return false;
if (useReprioritizedNoterows) {
if (!GenerateInputData()) {
Locator::getLogger()->warn("Failed to generate primitive "
"vectors for score {} because no "
"old replay data could be loaded "
"to recreate input data",
scoreKey);
return false;
}
ClearPrimitiveVectors();
} else {
Locator::getLogger()->warn(
"Failed to generate primitive vectors for "
"score {} because input data is not present",
scoreKey);
return false;
}
}

if (!FillInBlanksForInputData()) {
Expand Down

0 comments on commit fbf9f32

Please sign in to comment.