Libretro: Disable .sav files (RetroArch creates its own save files)

This commit is contained in:
Sour 2018-03-06 20:39:49 -05:00
parent e23e7f4639
commit 8b31493fda

View file

@ -36,6 +36,13 @@ void BatteryManager::SetBatteryRecorder(shared_ptr<IBatteryRecorder> recorder)
void BatteryManager::SaveBattery(string extension, uint8_t* data, uint32_t length)
{
if(_saveEnabled) {
#ifdef LIBRETRO
if(extension == ".sav") {
//Disable .sav files for libretro
return;
}
#endif
ofstream out(GetBasePath() + extension, ios::binary);
if(out) {
out.write((char*)data, length);