aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornegativeExponent2019-10-27 00:46:50 +0800
committernegativeExponent2019-10-27 00:46:50 +0800
commit34af0fff1456e3721af1691b2a135cd915ff42cd (patch)
tree44919f4dedc3b300bce44d7981d0f3b00ed01df6 /frontend
parent4b353f8adc434d4168df88bca58e793becaa891b (diff)
downloadpcsx_rearmed-34af0fff1456e3721af1691b2a135cd915ff42cd.tar.gz
pcsx_rearmed-34af0fff1456e3721af1691b2a135cd915ff42cd.tar.bz2
pcsx_rearmed-34af0fff1456e3721af1691b2a135cd915ff42cd.zip
Add "Spu Irq" core option
Diffstat (limited to 'frontend')
-rw-r--r--frontend/libretro.c10
-rw-r--r--frontend/libretro_core_options.h11
2 files changed, 21 insertions, 0 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index 987f90d..4d49087 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -1614,6 +1614,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 0c0634f..9509f2d 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
{