Add HAVE_DYNAREC ifdef to gba_memory.c

This commit is contained in:
twinaphex 2014-12-10 17:09:24 +01:00
parent 51d78afa09
commit 1bf4901b58
1 changed files with 2 additions and 0 deletions

View File

@ -3384,12 +3384,14 @@ void gba_load_state(const void* src)
state_mem_read_ptr = src; state_mem_read_ptr = src;
savestate_block(read); savestate_block(read);
#ifdef HAVE_DYNAREC
if (dynarec_enable) if (dynarec_enable)
{ {
flush_translation_cache_ram(); flush_translation_cache_ram();
flush_translation_cache_rom(); flush_translation_cache_rom();
flush_translation_cache_bios(); flush_translation_cache_bios();
} }
#endif
oam_update = 1; oam_update = 1;
gbc_sound_update = 1; gbc_sound_update = 1;