From 1bf4901b583289badb82ee9641d64c05ab1f4b29 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 10 Dec 2014 17:09:24 +0100 Subject: [PATCH] Add HAVE_DYNAREC ifdef to gba_memory.c --- gba_memory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gba_memory.c b/gba_memory.c index 98a025c..88d8c81 100644 --- a/gba_memory.c +++ b/gba_memory.c @@ -3384,12 +3384,14 @@ void gba_load_state(const void* src) state_mem_read_ptr = src; savestate_block(read); +#ifdef HAVE_DYNAREC if (dynarec_enable) { flush_translation_cache_ram(); flush_translation_cache_rom(); flush_translation_cache_bios(); } +#endif oam_update = 1; gbc_sound_update = 1;