diff options
author | twinaphex | 2014-12-10 17:16:41 +0100 |
---|---|---|
committer | twinaphex | 2014-12-10 17:16:41 +0100 |
commit | 75cffe81f22426c10d5bd506efc0045b9c7e0867 (patch) | |
tree | e6d856c1ae7fba43c220ceb0636c7cd18c245d17 | |
parent | 47951f2f9f82fad228b5e5184cb6356f14c5e6a2 (diff) | |
download | picogpsp-75cffe81f22426c10d5bd506efc0045b9c7e0867.tar.gz picogpsp-75cffe81f22426c10d5bd506efc0045b9c7e0867.tar.bz2 picogpsp-75cffe81f22426c10d5bd506efc0045b9c7e0867.zip |
non-HAVE_DYNAREC codepath compiles and links now
-rw-r--r-- | gba_memory.c | 6 |
1 files changed, 5 insertions, 1 deletions
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")) |