From 09b3f23868946a28079b59103b2420a27907698b Mon Sep 17 00:00:00 2001 From: Barinade Date: Mon, 19 Dec 2022 16:55:14 -0600 Subject: [PATCH] rename SetPlayerStageStatsForReplay to RescoreReplay in cpp it probably makes more sense --- src/Etterna/Screen/Gameplay/ScreenGameplayReplay.cpp | 2 +- src/Etterna/Screen/Others/ScreenEvaluation.cpp | 2 +- src/Etterna/Singletons/ReplayManager.cpp | 2 +- src/Etterna/Singletons/ReplayManager.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Etterna/Screen/Gameplay/ScreenGameplayReplay.cpp b/src/Etterna/Screen/Gameplay/ScreenGameplayReplay.cpp index ac604c7aa8..798f6e3513 100644 --- a/src/Etterna/Screen/Gameplay/ScreenGameplayReplay.cpp +++ b/src/Etterna/Screen/Gameplay/ScreenGameplayReplay.cpp @@ -367,7 +367,7 @@ ScreenGameplayReplay::StageFinished(bool bBackedOut) auto* const pss = m_vPlayerInfo.GetPlayerStageStats(); // Makes sure all PlayerStageStats discrepancies are corrected forcibly. - REPLAYS->SetPlayerStageStatsForReplay(*REPLAYS->GetActiveReplay(), pss); + REPLAYS->RescoreReplay(*REPLAYS->GetActiveReplay(), pss); STATSMAN->m_CurStageStats.FinalizeScores(); diff --git a/src/Etterna/Screen/Others/ScreenEvaluation.cpp b/src/Etterna/Screen/Others/ScreenEvaluation.cpp index 2e0dc7aebf..a4b0ad6c23 100644 --- a/src/Etterna/Screen/Others/ScreenEvaluation.cpp +++ b/src/Etterna/Screen/Others/ScreenEvaluation.cpp @@ -300,7 +300,7 @@ class LunaScreenEvaluation : public Luna replay->SetUseReprioritizedNoteRows(useReprioritizedNoterows); REPLAYS->EnableCustomScoringFunctions(); REPLAYS->InitReplayPlaybackForScore(hs, ts); - REPLAYS->SetPlayerStageStatsForReplay(*replay, pPSS, ts); + REPLAYS->RescoreReplay(*replay, pPSS, ts); REPLAYS->ReleaseReplay(replay); // remove extra reference REPLAYS->DisableCustomScoringFunctions(); lua_pushboolean(L, true); diff --git a/src/Etterna/Singletons/ReplayManager.cpp b/src/Etterna/Singletons/ReplayManager.cpp index fb56e83293..6777056252 100644 --- a/src/Etterna/Singletons/ReplayManager.cpp +++ b/src/Etterna/Singletons/ReplayManager.cpp @@ -272,7 +272,7 @@ ReplayManager::CalculateRadarValuesForReplay(Replay& replay, RadarValues& rv, Ra } auto -ReplayManager::SetPlayerStageStatsForReplay(Replay& replay, PlayerStageStats* pss, float ts) +ReplayManager::RescoreReplay(Replay& replay, PlayerStageStats* pss, float ts) -> bool { Locator::getLogger()->info("Entered PSSFromReplayData function"); diff --git a/src/Etterna/Singletons/ReplayManager.h b/src/Etterna/Singletons/ReplayManager.h index 10791c43dc..f8b2cdf047 100644 --- a/src/Etterna/Singletons/ReplayManager.h +++ b/src/Etterna/Singletons/ReplayManager.h @@ -81,7 +81,7 @@ class ReplayManager RadarValues& rv, RadarValues& possibleRV) -> bool; - auto SetPlayerStageStatsForReplay(Replay& replay, + auto RescoreReplay(Replay& replay, PlayerStageStats* pss, float timingScale = 1.F) -> bool;