X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Flibretro.c;h=6fee42a5ad78fd6b6f0986c5fc5f75b64968a95b;hb=67f607cb5e5f2a058109fdedb24b36f7bfa5a6a5;hp=33f2a42df15bd8145560bef8c9e1c208dc215d07;hpb=9601ca6d16dcef59d123539f5e2af07e504ac329;p=pcsx_rearmed.git diff --git a/frontend/libretro.c b/frontend/libretro.c index 33f2a42d..6fee42a5 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -1699,6 +1699,19 @@ static void update_variables(bool in_flight) else if (strcmp(var.value, "enabled") == 0) Config.RCntFix = 1; } + +#ifdef ICACHE_EMULATION + var.value = NULL; + var.key = "pcsx_rearmed_icache_emulation"; + + if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) + { + if (strcmp(var.value, "disabled") == 0) + Config.icache_emulation = 0; + else if (strcmp(var.value, "enabled") == 0) + Config.icache_emulation = 1; + } +#endif var.value = NULL; var.key = "pcsx_rearmed_inuyasha_fix"; @@ -2638,7 +2651,6 @@ static void loadPSXBios(void) unsigned useHLE = 0; const char *bios[] = { - "PS1_ROM", "ps1_rom", "PSXONPSP660", "psxonpsp660", "SCPH101", "scph101", "SCPH5501", "scph5501",