libretro: Clear SRAM after loading ROM.

This commit is contained in:
BearOso 2024-07-29 15:56:32 -05:00
parent 5d9f5b061b
commit e92b93ca9c

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;
}