libretro: Clear SRAM after loading ROM.

This commit is contained in:
BearOso 2024-07-29 15:56:32 -05:00
parent 5d9f5b061b
commit e92b93ca9c
1 changed files with 2 additions and 0 deletions

View File

@ -1156,6 +1156,8 @@ bool retro_load_game(const struct retro_game_info *game)
if (!rom_loaded && log_cb)
log_cb(RETRO_LOG_ERROR, "ROM loading failed...\n");
Memory.ClearSRAM();
return rom_loaded;
}