remove more shitty strings

This commit is contained in:
Arisotura
2021-12-12 23:01:42 +01:00
parent b5d276b683
commit f1ba1c164b
7 changed files with 120 additions and 122 deletions

View File

@ -43,7 +43,10 @@
* different minor means adjustments may have to be made
*/
Savestate::Savestate(const char* filename, bool save)
// TODO: buffering system! or something of that sort
// repeated fread/fwrite is slow on Switch
Savestate::Savestate(std::string filename, bool save)
{
const char* magic = "MELN";
@ -55,7 +58,7 @@ Savestate::Savestate(const char* filename, bool save)
file = Platform::OpenLocalFile(filename, "wb");
if (!file)
{
printf("savestate: file %s doesn't exist\n", filename);
printf("savestate: file %s doesn't exist\n", filename.c_str());
Error = true;
return;
}
@ -74,7 +77,7 @@ Savestate::Savestate(const char* filename, bool save)
file = Platform::OpenFile(filename, "rb");
if (!file)
{
printf("savestate: file %s doesn't exist\n", filename);
printf("savestate: file %s doesn't exist\n", filename.c_str());
Error = true;
return;
}