aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTwinaphex2015-05-20 00:05:00 +0200
committerTwinaphex2015-05-20 00:05:00 +0200
commit81e875a317f08af2728ff6dc9f3a6b43625c5dc1 (patch)
tree6b80439ca47c13fa2cd0f1f039a7ebd0f14bff4f
parent6d552c5fd9cd5115748aaf0b704aba264eab257b (diff)
parentb3480be8a40914a51ad3d404fa79db706fe9c886 (diff)
downloadpcsx_rearmed-81e875a317f08af2728ff6dc9f3a6b43625c5dc1.tar.gz
pcsx_rearmed-81e875a317f08af2728ff6dc9f3a6b43625c5dc1.tar.bz2
pcsx_rearmed-81e875a317f08af2728ff6dc9f3a6b43625c5dc1.zip
Merge pull request #18 from netux79/gamehacks
Expose 2 game hacks to allow play PE2, VH1/2 & Inuyasha
-rw-r--r--frontend/libretro.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index 3fd5b0a..b611e84 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -257,6 +257,8 @@ void retro_set_environment(retro_environment_t cb)
{ "pcsx_rearmed_duping_enable", "Frame duping; on|off" },
{ "pcsx_rearmed_spu_reverb", "Sound: Reverb; on|off" },
{ "pcsx_rearmed_spu_interpolation", "Sound: Interpolation; simple|gaussian|cubic|off" },
+ { "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 },
};
@@ -1086,6 +1088,28 @@ static void update_variables(bool in_flight)
spu_config.iUseInterpolation = 0;
}
+ var.value = "NULL";
+ var.key = "pcsx_rearmed_pe2_fix";
+
+ if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) || var.value)
+ {
+ if (strcmp(var.value, "disabled") == 0)
+ Config.RCntFix = 0;
+ else if (strcmp(var.value, "enabled") == 0)
+ Config.RCntFix = 1;
+ }
+
+ var.value = "NULL";
+ var.key = "pcsx_rearmed_inuyasha_fix";
+
+ if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) || var.value)
+ {
+ if (strcmp(var.value, "disabled") == 0)
+ Config.VSyncWA = 0;
+ else if (strcmp(var.value, "enabled") == 0)
+ Config.VSyncWA = 1;
+ }
+
if (in_flight) {
// inform core things about possible config changes
plugin_call_rearmed_cbs();