mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 17:55:45 -04:00
CPU: Fix icache missing from save state
This commit is contained in:
@ -175,9 +175,19 @@ bool DoState(StateWrapper& sw)
|
||||
if (!GTE::DoState(sw))
|
||||
return false;
|
||||
|
||||
if (sw.GetVersion() < 48)
|
||||
{
|
||||
DebugAssert(sw.IsReading());
|
||||
ClearICache();
|
||||
}
|
||||
else
|
||||
{
|
||||
sw.Do(&g_state.icache_tags);
|
||||
sw.Do(&g_state.icache_data);
|
||||
}
|
||||
|
||||
if (sw.IsReading())
|
||||
{
|
||||
ClearICache();
|
||||
if (g_settings.gpu_pgxp_enable)
|
||||
PGXP::Initialize();
|
||||
}
|
||||
|
Reference in New Issue
Block a user