aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorretro-wertz2019-03-13 09:47:58 +0800
committerretro-wertz2019-03-13 09:47:58 +0800
commit1d6abe26ddb1f893cf96ccd3e251f25b1afbba2a (patch)
tree21c36156454215ff99d5e270e910fa998d9be606 /frontend
parent1bedbd6f272bd83af54c80eb0089ae1d6f4561a2 (diff)
downloadpcsx_rearmed-1d6abe26ddb1f893cf96ccd3e251f25b1afbba2a.tar.gz
pcsx_rearmed-1d6abe26ddb1f893cf96ccd3e251f25b1afbba2a.tar.bz2
pcsx_rearmed-1d6abe26ddb1f893cf96ccd3e251f25b1afbba2a.zip
Add Diablo Music fix hack to core options
Diffstat (limited to 'frontend')
-rw-r--r--frontend/libretro.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index a5ec2c2..06b66b1 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -500,6 +500,7 @@ void retro_set_environment(retro_environment_t cb)
{ "pcsx_rearmed_show_bios_bootlogo", "Show Bios Bootlogo(Breaks some games); disabled|enabled" },
{ "pcsx_rearmed_spu_reverb", "Sound: Reverb; enabled|disabled" },
{ "pcsx_rearmed_spu_interpolation", "Sound: Interpolation; simple|gaussian|cubic|off" },
+ { "pcsx_rearmed_idiablofix", "Diablo Music Fix; disabled|enabled" },
{ "pcsx_rearmed_pe2_fix", "Parasite Eve 2/Vandal Hearts 1/2 Fix; disabled|enabled" },
{ "pcsx_rearmed_inuyasha_fix", "InuYasha Sengoku Battle Fix; disabled|enabled" },
{ NULL, NULL },
@@ -1558,6 +1559,17 @@ static void update_variables(bool in_flight)
}
var.value = "NULL";
+ var.key = "pcsx_rearmed_idiablofix";
+
+ if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) || var.value)
+ {
+ if (strcmp(var.value, "disabled") == 0)
+ spu_config.idiablofix = 0;
+ else if (strcmp(var.value, "enabled") == 0)
+ spu_config.idiablofix = 1;
+ }
+
+ var.value = "NULL";
var.key = "pcsx_rearmed_inuyasha_fix";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) || var.value)