System: Merge system taints with state taints on load

This commit is contained in:
Stenzek 2024-12-10 20:19:04 +10:00
parent cc567d9498
commit 1edcc8c0ac
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -2481,7 +2481,10 @@ bool System::DoState(StateWrapper& sw, GPUTexture** host_texture, bool update_di
u32 state_taints = s_state.taints;
sw.DoEx(&state_taints, 75, static_cast<u32>(0));
if (state_taints != s_state.taints) [[unlikely]]
{
WarnAboutStateTaints(state_taints);
s_state.taints |= state_taints;
}
sw.Do(&s_state.frame_number);
sw.Do(&s_state.internal_frame_number);