mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 05:40:15 -06:00
Merge pull request #403 from rafaelvcaetano/fix-firmware-fopen
Firmware backup writing now uses OpenLocalFile
This commit is contained in:
@ -130,11 +130,11 @@ void Reset()
|
||||
|
||||
// take a backup
|
||||
const char* firmbkp = "firmware.bin.bak";
|
||||
f = fopen(firmbkp, "rb");
|
||||
f = Platform::OpenLocalFile(firmbkp, "rb");
|
||||
if (f) fclose(f);
|
||||
else
|
||||
{
|
||||
f = fopen(firmbkp, "wb");
|
||||
f = Platform::OpenLocalFile(firmbkp, "wb");
|
||||
fwrite(Firmware, 1, FirmwareLength, f);
|
||||
fclose(f);
|
||||
}
|
||||
|
Reference in New Issue
Block a user