From 41fc83f9a093177dc7edd9800a705933d1f83277 Mon Sep 17 00:00:00 2001 From: MinaciousGrace Date: Mon, 29 May 2017 18:36:41 -0400 Subject: [PATCH] automatically import scores to the new etterna profile if no etterna.xml is found, after loading the base stats.xml --- src/Profile.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Profile.cpp b/src/Profile.cpp index 38399a7130..9a26af5119 100644 --- a/src/Profile.cpp +++ b/src/Profile.cpp @@ -817,10 +817,15 @@ ProfileLoadResult Profile::LoadAllFromDir( const RString &sDir, bool bRequireSig LoadEditableDataFromDir( sDir ); ProfileLoadResult ret= LoadEttFromDir(sDir); - if (ret != ProfileLoadResult_Success) + if (ret != ProfileLoadResult_Success) { ret = LoadStatsFromDir(sDir, bRequireSignature); - if (ret != ProfileLoadResult_Success) - return ret; + + if (ret != ProfileLoadResult_Success) + return ret; + + IsEtternaProfile = true; + ImportScoresToEtterna(); + } LoadOldEttFromDir(sDir);