diff options
Diffstat (limited to 'plugins/adplug/adplug/a2m.h')
-rw-r--r-- | plugins/adplug/adplug/a2m.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/adplug/adplug/a2m.h b/plugins/adplug/adplug/a2m.h index 9e032f61..e21d1dff 100644 --- a/plugins/adplug/adplug/a2m.h +++ b/plugins/adplug/adplug/a2m.h @@ -32,19 +32,19 @@ public: Ca2mLoader(Copl *newopl): CmodPlayer(newopl) { } - bool load(const std::string &filename, const CFileProvider &fp); + bool load(const char *filename, const CFileProvider &fp); float getrefresh(); - std::string gettype() - { return std::string("AdLib Tracker 2"); } - std::string gettitle() - { if(*songname) return std::string(songname,1,*songname); else return std::string(); } - std::string getauthor() - { if(*author) return std::string(author,1,*author); else return std::string(); } + const char *gettype() + { return "AdLib Tracker 2"; } + const char *gettitle() + { if(*songname) return songname; else return ""; } + const char *getauthor() + { if(*author) return author; else return ""; } unsigned int getinstruments() { return 250; } - std::string getinstrument(unsigned int n) - { return std::string(instname[n],1,*instname[n]); } + const char *getinstrument(unsigned int n) + { return instname[n]; } private: |