From 75cffe81f22426c10d5bd506efc0045b9c7e0867 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 10 Dec 2014 17:16:41 +0100 Subject: non-HAVE_DYNAREC codepath compiles and links now --- gba_memory.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gba_memory.c') diff --git a/gba_memory.c b/gba_memory.c index 88d8c81..bff8c9b 100644 --- a/gba_memory.c +++ b/gba_memory.c @@ -2233,11 +2233,13 @@ s32 load_game_config(char *gamepak_title, char *gamepak_code, char *gamepak_make char config_path[512]; FILE *config_file; +#ifdef HAVE_DYNAREC idle_loop_target_pc = 0xFFFFFFFF; iwram_stack_optimize = 1; + translation_gate_targets = 0; +#endif bios_rom[0x39] = 0x00; bios_rom[0x2C] = 0x00; - translation_gate_targets = 0; flash_device_id = FLASH_DEVICE_MACRONIX_64KB; sprintf(config_path, "%s" PATH_SEPARATOR "%s", main_path, CONFIG_FILENAME); @@ -2280,6 +2282,7 @@ s32 load_game_config(char *gamepak_title, char *gamepak_code, char *gamepak_make return 0; } +#ifdef HAVE_DYNAREC if (dynarec_enable) { if(!strcmp(current_variable, "idle_loop_eliminate_target")) @@ -2301,6 +2304,7 @@ s32 load_game_config(char *gamepak_title, char *gamepak_code, char *gamepak_make iwram_stack_optimize = 0; } } +#endif if(!strcmp(current_variable, "flash_rom_type") && !strcmp(current_value, "128KB")) -- cgit v1.2.3