Autosave completed but not tested.
This commit is contained in:
+3
-3
@@ -25,16 +25,16 @@ void NotesLoader::GetMainAndSubTitlesFromFullTitle( const RString &sFullTitle, R
|
||||
sSubTitleOut = "";
|
||||
};
|
||||
|
||||
bool NotesLoader::LoadFromDir( const RString &sPath, Song &out, set<RString> &BlacklistedImages )
|
||||
bool NotesLoader::LoadFromDir( const RString &sPath, Song &out, set<RString> &BlacklistedImages, bool load_autosave )
|
||||
{
|
||||
vector<RString> list;
|
||||
|
||||
BlacklistedImages.clear();
|
||||
SSCLoader loaderSSC;
|
||||
loaderSSC.GetApplicableFiles( sPath, list );
|
||||
loaderSSC.GetApplicableFiles( sPath, list, load_autosave );
|
||||
if( !list.empty() )
|
||||
{
|
||||
if( !loaderSSC.LoadFromDir( sPath, out ) )
|
||||
if( !loaderSSC.LoadFromDir( sPath, out, load_autosave ) )
|
||||
return false;
|
||||
loaderSSC.TidyUpData( out, false );
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user