Make GetApplicableFiles() static and don't create a loader unless it can load from that directory.

This commit is contained in:
Steve Checkoway
2006-11-01 10:09:13 +00:00
parent a9e04a845a
commit 5f851a47ca
6 changed files with 11 additions and 33 deletions
-3
View File
@@ -10,8 +10,6 @@ class Song;
class NotesLoader
{
protected:
virtual void GetApplicableFiles( const RString &sPath, vector<RString> &out )=0;
set<RString> BlacklistedImages;
public:
@@ -20,7 +18,6 @@ public:
static void GetMainAndSubTitlesFromFullTitle( const RString &sFullTitle, RString &sMainTitleOut, RString &sSubTitleOut );
virtual bool LoadFromDir( const RString &sPath, Song &out ) = 0;
virtual void TidyUpData( Song &song, bool cache ) { }
bool Loadable( const RString &sPath );
static NotesLoader *MakeLoader( const RString& sDir );
};