Skip to content

Commit

Permalink
automatically import scores to the new etterna profile if no etterna.…
Browse files Browse the repository at this point in the history
…xml is found, after loading the base stats.xml
  • Loading branch information
MinaciousGrace committed May 29, 2017
1 parent ee613c8 commit 41fc83f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 41fc83f

Please sign in to comment.