GSDumpReplayer: Update serial on dump load

Fixes title and HW fixes not applying when dragging a new GS dump onto a
running PCSX2.
This commit is contained in:
Stenzek 2023-03-06 01:05:09 +10:00 committed by refractionpcsx2
parent 31d02c1278
commit c783fc0f59
1 changed files with 3 additions and 0 deletions

View File

@ -213,6 +213,9 @@ static void GSDumpReplayerLoadInitialState()
std::memcpy(PS2MEM_GS, s_dump_file->GetRegsData().data(),
std::min(Ps2MemSize::GSregs, static_cast<u32>(s_dump_file->GetRegsData().size())));
// update serial to load hw fixes
VMManager::Internal::GameStartingOnCPUThread();
// load GS state
freezeData fd = {static_cast<int>(s_dump_file->GetStateData().size()),
const_cast<u8*>(s_dump_file->GetStateData().data())};