Files
itgmania212121/stepmania/src/NotesLoaderSM.h
T

40 lines
946 B
C++
Raw Normal View History

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
2003-12-18 08:21:18 +00:00
class MsdFile;
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-11-17 03:38:24 +00:00
CString sAttackData,
2003-08-03 00:13:55 +00:00
Steps &out);
2002-09-06 23:24:40 +00:00
bool FromCache;
2002-09-06 23:24:40 +00:00
public:
SMLoader() { FromCache = false; }
2002-09-06 23:24:40 +00:00
bool LoadFromSMFile( CString sPath, Song &out );
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 );
2004-01-17 23:21:07 +00:00
static bool LoadTimingFromFile( const CString &fn, TimingData &out );
static void LoadTimingFromSMFile( const MsdFile &msd, TimingData &out );
static bool LoadEdit( CString sEditFilePath, ProfileSlot slot );
2002-09-06 23:24:40 +00:00
};
#endif