mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
Savestate: use Platform::OpenLocalFile (#1026)
This commit is contained in:
@ -52,7 +52,7 @@ Savestate::Savestate(const char* filename, bool save)
|
|||||||
if (save)
|
if (save)
|
||||||
{
|
{
|
||||||
Saving = true;
|
Saving = true;
|
||||||
file = Platform::OpenFile(filename, "wb");
|
file = Platform::OpenLocalFile(filename, "wb");
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
printf("savestate: file %s doesn't exist\n", filename);
|
printf("savestate: file %s doesn't exist\n", filename);
|
||||||
@ -289,4 +289,4 @@ void Savestate::VarArray(void* data, u32 len)
|
|||||||
{
|
{
|
||||||
fread(data, len, 1, file);
|
fread(data, len, 1, file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user