System: Reinitialize code cache on hw settings change/disc swap
Basically, anything which could allocate large amounts of memory and potentially overlap with our fastmem area.
This commit is contained in:
@ -1609,6 +1609,10 @@ bool InsertMedia(const char* path)
|
||||
UpdateMemoryCards();
|
||||
}
|
||||
|
||||
// reinitialize recompiler, because especially with preloading this might overlap the fastmem area
|
||||
if (g_settings.IsUsingCodeCache())
|
||||
CPU::CodeCache::Reinitialize();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user