aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorneonloop2021-08-12 16:49:45 +0000
committerneonloop2021-08-12 16:49:45 +0000
commit147ce424f9d908cab634942e448200805a5e5430 (patch)
tree8834d3b7b72185f4ec3ec030b1c5a13ba44cde14 /patches
parent8d9f5ec001533cd3386bc03d1a84335dd28eb767 (diff)
downloadpicoarch-147ce424f9d908cab634942e448200805a5e5430.tar.gz
picoarch-147ce424f9d908cab634942e448200805a5e5430.tar.bz2
picoarch-147ce424f9d908cab634942e448200805a5e5430.zip
Updates snes9x2005 patches
Diffstat (limited to 'patches')
-rw-r--r--patches/snes9x2005/0001-frameskip-interval.patch33
-rw-r--r--patches/snes9x2005/1001-core-options.patch62
2 files changed, 52 insertions, 43 deletions
diff --git a/patches/snes9x2005/0001-frameskip-interval.patch b/patches/snes9x2005/0001-frameskip-interval.patch
index 0025b76..f1c431d 100644
--- a/patches/snes9x2005/0001-frameskip-interval.patch
+++ b/patches/snes9x2005/0001-frameskip-interval.patch
@@ -1,8 +1,8 @@
diff --git a/libretro.c b/libretro.c
-index c368d8f..305adee 100644
+index 9b4599e..c768c42 100644
--- a/libretro.c
+++ b/libretro.c
-@@ -57,13 +57,11 @@ static int32_t samplerate = (((SNES_CLOCK_SPEED * 6) / (32 * ONE_APU_CYCLE)));
+@@ -58,13 +58,11 @@ static int32_t samplerate = (((SNES_CLOCK_SPEED * 6) / (32 * ONE_APU_CYCLE)));
static unsigned frameskip_type = 0;
static unsigned frameskip_threshold = 0;
static uint16_t frameskip_counter = 0;
@@ -17,7 +17,7 @@ index c368d8f..305adee 100644
static unsigned retro_audio_latency = 0;
static bool update_audio_latency = false;
-@@ -341,6 +339,7 @@ void retro_deinit(void)
+@@ -345,6 +343,7 @@ void retro_deinit(void)
frameskip_type = 0;
frameskip_threshold = 0;
frameskip_counter = 0;
@@ -25,7 +25,7 @@ index c368d8f..305adee 100644
retro_audio_buff_active = false;
retro_audio_buff_occupancy = 0;
retro_audio_buff_underrun = false;
-@@ -414,7 +413,7 @@ static void check_variables(bool first_run)
+@@ -418,7 +417,7 @@ static void check_variables(bool first_run)
{
if (strcmp(var.value, "auto") == 0)
frameskip_type = 1;
@@ -34,11 +34,11 @@ index c368d8f..305adee 100644
frameskip_type = 2;
}
-@@ -426,6 +425,14 @@ static void check_variables(bool first_run)
+@@ -430,6 +429,14 @@ static void check_variables(bool first_run)
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
frameskip_threshold = strtol(var.value, NULL, 10);
-+ var.key = "catsfc_frameskip_interval";
++ var.key = "snes9x_2005_frameskip_interval";
+ var.value = NULL;
+
+ frameskip_interval = 4;
@@ -46,10 +46,10 @@ index c368d8f..305adee 100644
+ if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
+ frameskip_interval = strtol(var.value, NULL, 10);
+
- var.key = "catsfc_overclock_cycles";
+ var.key = "snes9x_2005_overclock_cycles";
var.value = NULL;
-@@ -531,7 +538,7 @@ void retro_run(void)
+@@ -535,7 +542,7 @@ void retro_run(void)
if (skip_frame)
{
@@ -59,12 +59,12 @@ index c368d8f..305adee 100644
IPPU.RenderThisFrame = false;
frameskip_counter++;
diff --git a/libretro_core_options.h b/libretro_core_options.h
-index 032cefd..14bf8d8 100644
+index 9b89154..41d5ff1 100644
--- a/libretro_core_options.h
+++ b/libretro_core_options.h
-@@ -71,9 +71,9 @@ struct retro_core_option_definition option_defs_us[] = {
- "Frameskip",
- "Skip frames to avoid audio buffer under-run (crackling). Improves performance at the expense of visual smoothness. 'Auto' skips frames when advised by the frontend. 'Manual' utilises the 'Frameskip Threshold (%)' setting.",
+@@ -87,9 +87,9 @@ struct retro_core_option_v2_definition option_defs_us[] = {
+ NULL,
+ NULL,
{
- { "disabled", NULL },
- { "auto", "Auto" },
@@ -75,14 +75,17 @@ index 032cefd..14bf8d8 100644
{ NULL, NULL },
},
"disabled"
-@@ -103,6 +103,26 @@ struct retro_core_option_definition option_defs_us[] = {
+@@ -122,6 +122,29 @@ struct retro_core_option_v2_definition option_defs_us[] = {
},
"33"
},
+ {
-+ "catsfc_frameskip_interval",
++ "snes9x_2005_frameskip_interval",
+ "Frameskip Interval",
++ NULL,
+ "The maximum number of frames that can be skipped before a new frame is rendered.",
++ NULL,
++ NULL,
+ {
+ { "0", NULL },
+ { "1", NULL },
@@ -100,5 +103,5 @@ index 032cefd..14bf8d8 100644
+ "4"
+ },
{
- "catsfc_overclock_cycles",
+ "snes9x_2005_overclock_cycles",
"Reduce Slowdown (Hack, Unsafe, Restart)",
diff --git a/patches/snes9x2005/1001-core-options.patch b/patches/snes9x2005/1001-core-options.patch
index 47a419c..121aada 100644
--- a/patches/snes9x2005/1001-core-options.patch
+++ b/patches/snes9x2005/1001-core-options.patch
@@ -1,25 +1,26 @@
diff --git a/libretro_core_options.h b/libretro_core_options.h
-index 14bf8d8..b69d19a 100644
+index 41d5ff1..f41ee18 100644
--- a/libretro_core_options.h
+++ b/libretro_core_options.h
-@@ -57,7 +57,7 @@ struct retro_core_option_definition option_defs_us[] = {
- {
- "catsfc_VideoMode",
+@@ -68,7 +68,7 @@ struct retro_core_option_v2_definition option_defs_us[] = {
+ "snes9x_2005_region",
"Console Region",
+ NULL,
- "Specify which region the system is from. 'PAL' is 50hz, 'NTSC' is 60hz. Games will run faster or slower than normal if the incorrect region is selected.",
+ "'PAL' is 50hz, 'NTSC' is 60hz. Games will run faster or slower than normal if the incorrect region is selected.",
+ NULL,
+ NULL,
{
- { "auto", "Auto" },
- { "NTSC", NULL },
-@@ -69,19 +69,19 @@ struct retro_core_option_definition option_defs_us[] = {
- {
- "catsfc_frameskip",
+@@ -83,7 +83,7 @@ struct retro_core_option_v2_definition option_defs_us[] = {
+ "snes9x_2005_frameskip",
"Frameskip",
+ NULL,
- "Skip frames to avoid audio buffer under-run (crackling). Improves performance at the expense of visual smoothness. 'Auto' skips frames when advised by the frontend. 'Manual' utilises the 'Frameskip Threshold (%)' setting.",
+ "Skip frames to avoid audio crackling. Improves performance at the expense of visual smoothness.",
+ NULL,
+ NULL,
{
- { "disabled", NULL },
- { "auto", "Auto" },
+@@ -92,13 +92,13 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "auto_threshold", "Threshold" },
{ NULL, NULL },
},
@@ -27,40 +28,45 @@ index 14bf8d8..b69d19a 100644
+ "auto"
},
{
- "catsfc_frameskip_threshold",
+ "snes9x_2005_frameskip_threshold",
- "Frameskip Threshold (%)",
-- "When 'Frameskip' is set to 'Manual', specifies the audio buffer occupancy threshold (percentage) below which frames will be skipped. Higher values reduce the risk of crackling by causing frames to be dropped more frequently.",
+ "FS Threshold (%)",
+ NULL,
+- "When 'Frameskip' is set to 'Manual', specifies the audio buffer occupancy threshold (percentage) below which frames will be skipped. Higher values reduce the risk of crackling by causing frames to be dropped more frequently.",
+ "When 'Frameskip' is set to 'Threshold', sets how low the audio buffer can get before frames will be skipped.",
+ NULL,
+ NULL,
{
- { "15", NULL },
- { "18", NULL },
-@@ -105,7 +105,7 @@ struct retro_core_option_definition option_defs_us[] = {
+@@ -124,7 +124,7 @@ struct retro_core_option_v2_definition option_defs_us[] = {
},
{
- "catsfc_frameskip_interval",
+ "snes9x_2005_frameskip_interval",
- "Frameskip Interval",
+ "FS Interval",
+ NULL,
"The maximum number of frames that can be skipped before a new frame is rendered.",
- {
- { "0", NULL },
-@@ -125,8 +125,8 @@ struct retro_core_option_definition option_defs_us[] = {
+ NULL,
+@@ -147,9 +147,9 @@ struct retro_core_option_v2_definition option_defs_us[] = {
},
{
- "catsfc_overclock_cycles",
+ "snes9x_2005_overclock_cycles",
- "Reduce Slowdown (Hack, Unsafe, Restart)",
-- "Many games for the SNES suffered from slowdown due to the weak main CPU. This option helps allievate that at the cost of possible bugs. COMPATIBLE: Reduce slowdown but keep as much game compatibility as much as possible. MAX: Reduce slowdown as much as possible but will break more games.",
+ "Overclock (Restart)",
+ NULL,
+- "Many games for the SNES suffered from slowdown due to the weak main CPU. This option helps allievate that at the cost of possible bugs. COMPATIBLE: Reduce slowdown but keep as much game compatibility as much as possible. MAX: Reduce slowdown as much as possible but will break more games.",
+ "Alleviate normal SNES slowdown. Compatible keeps as much compatibility as possible. Max will reduce more slowdown but break more games.",
+ NULL,
+ "hacks",
{
- { "disabled", NULL },
- { "compatible", "Compatible" },
-@@ -137,7 +137,7 @@ struct retro_core_option_definition option_defs_us[] = {
+@@ -162,9 +162,9 @@ struct retro_core_option_v2_definition option_defs_us[] = {
},
{
- "catsfc_reduce_sprite_flicker",
+ "snes9x_2005_reduce_sprite_flicker",
- "Reduce Flickering (Hack, Unsafe)",
+ "Reduce Flicker",
- "Raises sprite limit to reduce flickering in games.",
+ NULL,
+- "Increases number of sprites that can be drawn simultaneously on screen. Reduces flickering in games.",
++ "Raises sprite limit to reduce flickering in games.",
+ NULL,
+ "hacks",
{
- { "disabled", NULL },