From fbf9f32cc10f3f984e2be4e9a2d1c3c2c16cf111 Mon Sep 17 00:00:00 2001 From: Barinade Date: Mon, 19 Dec 2022 02:24:57 -0600 Subject: [PATCH] generate input data from old replay data if missing when it's needed only for the reprioritization case --- src/Etterna/Models/HighScore/Replay.cpp | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/Etterna/Models/HighScore/Replay.cpp b/src/Etterna/Models/HighScore/Replay.cpp index c1a03adec6..c18ed212cc 100644 --- a/src/Etterna/Models/HighScore/Replay.cpp +++ b/src/Etterna/Models/HighScore/Replay.cpp @@ -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()) {