From 4c887d89f8cd9ce8e6f135ce5caa92b2b23491e0 Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Fri, 9 Feb 2018 18:44:47 +0100 Subject: Add sprite limit hack. --- libretro.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libretro.c') diff --git a/libretro.c b/libretro.c index 42e316d..c5895c6 100644 --- a/libretro.c +++ b/libretro.c @@ -37,6 +37,7 @@ struct retro_perf_callback perf_cb; char retro_save_directory[PATH_MAX]; char retro_base_name[PATH_MAX]; bool overclock_cycles = false; +bool reduce_sprite_flicker = false; #ifdef _WIN32 char slash = '\\'; @@ -296,6 +297,7 @@ void retro_init(void) { { "catsfc_VideoMode", "Video Mode; auto|NTSC|PAL" }, { "catsfc_overclock_cycles", "CPU Overclock (Hack, Unsafe, Restart); disabled|enabled" }, + { "catsfc_reduce_sprite_flicker", "Reduce Flickering (Hack, Unsafe); disabled|enabled" }, { NULL, NULL }, }; @@ -391,6 +393,17 @@ static void check_variables(void) else overclock_cycles = false; } + + var.key = "catsfc_reduce_sprite_flicker"; + var.value = NULL; + + if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) + { + if (strcmp(var.value, "enabled") == 0) + reduce_sprite_flicker = true; + else + reduce_sprite_flicker = false; + } } #ifdef PSP -- cgit v1.2.3 From b23fdeb8198fb625331740a0c12d5663a03a816c Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Fri, 9 Feb 2018 19:08:36 +0100 Subject: renaming --- libretro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libretro.c') diff --git a/libretro.c b/libretro.c index c5895c6..7172cee 100644 --- a/libretro.c +++ b/libretro.c @@ -296,7 +296,7 @@ void retro_init(void) static const struct retro_variable vars[] = { { "catsfc_VideoMode", "Video Mode; auto|NTSC|PAL" }, - { "catsfc_overclock_cycles", "CPU Overclock (Hack, Unsafe, Restart); disabled|enabled" }, + { "catsfc_overclock_cycles", "Reduce Slowdown (Hack, Unsafe, Restart); disabled|enabled" }, { "catsfc_reduce_sprite_flicker", "Reduce Flickering (Hack, Unsafe); disabled|enabled" }, { NULL, NULL }, }; -- cgit v1.2.3