2002-09-06 23:24:40 +00:00
|
|
|
#ifndef NOTES_LOADER_SM_H
|
|
|
|
|
#define NOTES_LOADER_SM_H
|
|
|
|
|
|
2003-02-16 04:28:17 +00:00
|
|
|
#include "song.h"
|
2003-08-03 00:13:55 +00:00
|
|
|
#include "Steps.h"
|
2002-09-11 05:15:46 +00:00
|
|
|
#include "NotesLoader.h"
|
2002-09-06 23:24:40 +00:00
|
|
|
|
2002-09-11 05:15:46 +00:00
|
|
|
class SMLoader: public NotesLoader {
|
2002-12-14 21:41:48 +00:00
|
|
|
static void LoadFromSMTokens(
|
2002-09-06 23:24:40 +00:00
|
|
|
CString sNotesType,
|
|
|
|
|
CString sDescription,
|
2002-09-29 05:06:18 +00:00
|
|
|
CString sDifficulty,
|
2002-09-06 23:24:40 +00:00
|
|
|
CString sMeter,
|
|
|
|
|
CString sRadarValues,
|
|
|
|
|
CString sNoteData,
|
2003-08-03 00:13:55 +00:00
|
|
|
Steps &out);
|
2002-09-06 23:24:40 +00:00
|
|
|
|
2003-01-25 08:10:51 +00:00
|
|
|
bool FromCache;
|
|
|
|
|
|
2002-09-06 23:24:40 +00:00
|
|
|
public:
|
2003-01-25 08:10:51 +00:00
|
|
|
SMLoader() { FromCache = false; }
|
2002-09-06 23:24:40 +00:00
|
|
|
bool LoadFromSMFile( CString sPath, Song &out );
|
2003-01-25 08:10:51 +00:00
|
|
|
bool LoadFromSMFile( CString sPath, Song &out, bool cache )
|
|
|
|
|
{
|
|
|
|
|
FromCache=cache;
|
|
|
|
|
return LoadFromSMFile( sPath, out );
|
|
|
|
|
}
|
2002-09-06 23:24:40 +00:00
|
|
|
|
2002-09-11 05:15:46 +00:00
|
|
|
void GetApplicableFiles( CString sPath, CStringArray &out );
|
|
|
|
|
bool LoadFromDir( CString sPath, Song &out );
|
2002-09-06 23:24:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|