From: Twinaphex Date: Sat, 14 Dec 2019 18:09:16 +0000 (+0100) Subject: Merge pull request #368 from negativeExponent/memmap X-Git-Tag: r24l~689 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0f4c0ee2cf547eefd91aa2e11439bad2ceb35e0;hp=b5926d18036e9b3afd462a1222daa9f7bd64b742;p=pcsx_rearmed.git Merge pull request #368 from negativeExponent/memmap Access psx main memory using retro_memory_map --- diff --git a/frontend/libretro.c b/frontend/libretro.c index 7d6d8d48..d63f1268 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -1630,6 +1630,16 @@ static void update_variables(bool in_flight) Config.Cdda = 0; } + var.value = NULL; + var.key = "pcsx_rearmed_spuirq"; + if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) || var.value) + { + if (strcmp(var.value, "disabled") == 0) + Config.SpuIrq = 0; + else + Config.SpuIrq = 1; + } + #ifndef DRC_DISABLE var.value = NULL; var.key = "pcsx_rearmed_nosmccheck"; diff --git a/frontend/libretro_core_options.h b/frontend/libretro_core_options.h index 0c0634f9..9509f2dd 100644 --- a/frontend/libretro_core_options.h +++ b/frontend/libretro_core_options.h @@ -970,6 +970,17 @@ struct retro_core_option_definition option_defs_us[] = { }, "enabled", }, + { + "pcsx_rearmed_spuirq", + "SPU IRQ Always Enabled", + "Compatibility tweak, should be left to off in most cases.", + { + { "disabled", NULL }, + { "enabled", NULL }, + { NULL, NULL }, + }, + "disabled", + }, #ifndef DRC_DISABLE {