aboutsummaryrefslogtreecommitdiff
path: root/src/Savestate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Savestate.cpp')
-rw-r--r--src/Savestate.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Savestate.cpp b/src/Savestate.cpp
index 1bfe937..81d42eb 100644
--- a/src/Savestate.cpp
+++ b/src/Savestate.cpp
@@ -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;
}