summaryrefslogtreecommitdiff
path: root/plugins/adplug/adplug/fmc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/adplug/adplug/fmc.cpp')
-rw-r--r--plugins/adplug/adplug/fmc.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/adplug/adplug/fmc.cpp b/plugins/adplug/adplug/fmc.cpp
index 75cd99a7..bf9911e3 100644
--- a/plugins/adplug/adplug/fmc.cpp
+++ b/plugins/adplug/adplug/fmc.cpp
@@ -19,7 +19,7 @@
fmc.cpp - FMC Loader by Riven the Mage <riven@ok.ru>
*/
-#include <cstring>
+#include <string.h>
#include "fmc.h"
/* -------- Public Methods -------------------------------- */
@@ -29,7 +29,7 @@ CPlayer *CfmcLoader::factory(Copl *newopl)
return new CfmcLoader(newopl);
}
-bool CfmcLoader::load(const std::string &filename, const CFileProvider &fp)
+bool CfmcLoader::load(const char *filename, const CFileProvider &fp)
{
binistream *f = fp.open(filename); if(!f) return false;
const unsigned char conv_fx[16] = {0,1,2,3,4,8,255,255,255,255,26,11,12,13,14,15};
@@ -168,19 +168,19 @@ float CfmcLoader::getrefresh()
return 50.0f;
}
-std::string CfmcLoader::gettype()
+const char * CfmcLoader::gettype()
{
- return std::string("Faust Music Creator");
+ return "Faust Music Creator";
}
-std::string CfmcLoader::gettitle()
+const char * CfmcLoader::gettitle()
{
- return std::string(header.title);
+ return header.title;
}
-std::string CfmcLoader::getinstrument(unsigned int n)
+const char * CfmcLoader::getinstrument(unsigned int n)
{
- return std::string(instruments[n].name);
+ return instruments[n].name;
}
unsigned int CfmcLoader::getinstruments()