Codechange: use std::string for midi filenames
This commit is contained in:
@@ -35,15 +35,15 @@ struct MidiFile {
|
||||
MidiFile();
|
||||
~MidiFile();
|
||||
|
||||
bool LoadFile(const char *filename);
|
||||
bool LoadFile(const std::string &filename);
|
||||
bool LoadMpsData(const byte *data, size_t length);
|
||||
bool LoadSong(const MusicSongInfo &song);
|
||||
void MoveFrom(MidiFile &other);
|
||||
|
||||
bool WriteSMF(const char *filename);
|
||||
bool WriteSMF(const std::string &filename);
|
||||
|
||||
static std::string GetSMFFile(const MusicSongInfo &song);
|
||||
static bool ReadSMFHeader(const char *filename, SMFHeader &header);
|
||||
static bool ReadSMFHeader(const std::string &filename, SMFHeader &header);
|
||||
static bool ReadSMFHeader(FILE *file, SMFHeader &header);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user