System: Remove BIOS from save state

Makes the states smaller, as well as not creating potential piracy
issues when sending across the wire.
This commit is contained in:
Stenzek
2023-03-16 19:33:59 +10:00
parent 1fcf16fc81
commit 33f5d9cb9c
5 changed files with 38 additions and 3 deletions

View File

@ -211,7 +211,13 @@ bool DoState(StateWrapper& sw)
sw.Do(&m_cdrom_access_time);
sw.Do(&m_spu_access_time);
sw.DoBytes(g_ram, g_ram_size);
sw.DoBytes(g_bios, BIOS_SIZE);
if (sw.GetVersion() < 58)
{
Log_WarningPrint("Overwriting loaded BIOS with old save state.");
sw.DoBytes(g_bios, BIOS_SIZE);
}
sw.DoArray(m_MEMCTRL.regs, countof(m_MEMCTRL.regs));
sw.Do(&m_ram_size_reg);
sw.Do(&m_tty_line_buffer);