Libretro: Disable .sav files (RetroArch creates its own save files)
This commit is contained in:
parent
e23e7f4639
commit
8b31493fda
1 changed files with 7 additions and 0 deletions
|
@ -36,6 +36,13 @@ void BatteryManager::SetBatteryRecorder(shared_ptr<IBatteryRecorder> recorder)
|
||||||
void BatteryManager::SaveBattery(string extension, uint8_t* data, uint32_t length)
|
void BatteryManager::SaveBattery(string extension, uint8_t* data, uint32_t length)
|
||||||
{
|
{
|
||||||
if(_saveEnabled) {
|
if(_saveEnabled) {
|
||||||
|
#ifdef LIBRETRO
|
||||||
|
if(extension == ".sav") {
|
||||||
|
//Disable .sav files for libretro
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ofstream out(GetBasePath() + extension, ios::binary);
|
ofstream out(GetBasePath() + extension, ios::binary);
|
||||||
if(out) {
|
if(out) {
|
||||||
out.write((char*)data, length);
|
out.write((char*)data, length);
|
||||||
|
|
Loading…
Add table
Reference in a new issue