Make this stateless.

This commit is contained in:
Steve Checkoway
2007-02-14 10:08:19 +00:00
parent 5b0a13dccc
commit 6c8ddaec73
2 changed files with 14 additions and 30 deletions
+4 -20
View File
@@ -13,29 +13,13 @@ class TimingData;
class SMLoader: public NotesLoader
{
static void LoadFromSMTokens(
RString sStepsType,
RString sDescription,
RString sDifficulty,
RString sMeter,
RString sRadarValues,
RString sNoteData,
Steps &out);
bool FromCache;
public:
SMLoader() { FromCache = false; }
bool LoadFromSMFile( const RString &sPath, Song &out );
bool LoadFromSMFile( const RString &sPath, Song &out, bool cache )
{
FromCache=cache;
return LoadFromSMFile( sPath, out );
}
SMLoader() {}
virtual bool LoadFromDir( const RString &sPath, Song &out );
virtual void TidyUpData( Song &song, bool bFromCache );
static bool LoadFromSMFile( const RString &sPath, Song &out, bool bFromCache = false );
static void GetApplicableFiles( const RString &sPath, vector<RString> &out );
bool LoadFromDir( const RString &sPath, Song &out );
void TidyUpData( Song &song, bool cache );
static bool LoadTimingFromFile( const RString &fn, TimingData &out );
static void LoadTimingFromSMFile( const MsdFile &msd, TimingData &out );
static bool LoadEditFromFile( RString sEditFilePath, ProfileSlot slot, bool bAddStepsToSong );