From da260c2b1d8f071479f5f8c13ca5b14510e9095b Mon Sep 17 00:00:00 2001 From: Barinade Date: Sun, 24 Nov 2019 02:27:29 -0600 Subject: [PATCH] Don't save profile exiting Evaluation if recent score wasn't live should save a tiny bit of time for big profiles viewing eval screens and stuff --- src/Etterna/Screen/Others/ScreenProfileSave.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Etterna/Screen/Others/ScreenProfileSave.cpp b/src/Etterna/Screen/Others/ScreenProfileSave.cpp index 7badc979c8..b390687814 100644 --- a/src/Etterna/Screen/Others/ScreenProfileSave.cpp +++ b/src/Etterna/Screen/Others/ScreenProfileSave.cpp @@ -3,6 +3,7 @@ #include "Etterna/Singletons/ScreenManager.h" #include "ScreenProfileSave.h" #include "Etterna/Singletons/DownloadManager.h" +#include "Etterna/Singletons/StatsManager.h" REGISTER_SCREEN_CLASS(ScreenProfileSave); @@ -23,7 +24,10 @@ ScreenProfileSave::Continue() { DLMAN->chartLeaderboards.clear(); // clear cached leaderboard scores when // saving after gameplay -mina - GAMESTATE->SavePlayerProfiles(); + if (!STATSMAN->m_vPlayedStageStats.empty()) + if (STATSMAN->m_vPlayedStageStats.back().m_bLivePlay) + GAMESTATE->SavePlayerProfiles(); + SCREENMAN->ZeroNextUpdate(); StartTransitioningScreen(SM_GoToNextScreen);