X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Flibretro.c;h=60cd29d7d77444ad9833137a37add4b39574fe35;hb=8659d7fd2cdb11f63724ead0997f47f4c694f8c2;hp=938b8e593ea5f0d53433761409bd41bd18d2589f;hpb=3c53dce313b786d55ff3f9c363ba26f4c0b3476e;p=pcsx_rearmed.git diff --git a/frontend/libretro.c b/frontend/libretro.c index 938b8e59..60cd29d7 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -2047,6 +2047,16 @@ static void update_variables(bool in_flight) Config.icache_emulation = 1; } + var.value = NULL; + var.key = "pcsx_rearmed_exception_emulation"; + if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) + { + if (strcmp(var.value, "enabled") == 0) + Config.PreciseExceptions = 1; + else + Config.PreciseExceptions = 0; + } + psxCpu->ApplyConfig(); // end of CPU emu config @@ -2819,7 +2829,7 @@ static bool find_any_bios(const char *dirpath, char *path, size_t path_size) if (dir == NULL) return false; - for (i = 0; sizeof(substrings) / sizeof(substrings[0]); i++) + for (i = 0; i < (sizeof(substrings) / sizeof(substrings[0])); i++) { const char *substr = substrings[i]; size_t len = strlen(substr);