slackbuilds_ponce/games/jollygood/more_extensions.diff
B. Watson a69c23ad48
games/jollygood: Added (Jolly Good Emu API and Reference Frontend)
Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-01-28 08:22:58 +07:00

21 lines
902 B
Diff

diff -Naur jgrf-1.0.0/src/jgrf.c jgrf-1.0.0.patched/src/jgrf.c
--- jgrf-1.0.0/src/jgrf.c 2022-12-27 18:23:42.000000000 -0500
+++ jgrf-1.0.0.patched/src/jgrf.c 2023-01-20 22:48:24.225103350 -0500
@@ -807,7 +807,8 @@
else if (!strcasecmp(ext, "lnx"))
snprintf(gdata.sys, sizeof(gdata.sys), "lynx");
- else if (!strcasecmp(ext, "md"))
+ else if (!strcasecmp(ext, "md") || !strcasecmp(ext, "smd") ||
+ !strcasecmp(ext, "sra"))
snprintf(gdata.sys, sizeof(gdata.sys), "md");
else if (!strcasecmp(ext, "nds") || !strcasecmp(ext, "dsi"))
@@ -823,6 +824,7 @@
snprintf(gdata.sys, sizeof(gdata.sys), "pce");
else if (!strcasecmp(ext, "sfc") || !strcasecmp(ext, "smc") ||
+ !strcasecmp(ext, "fig") || !strcasecmp(ext, "swc") ||
!strcasecmp(ext, "bs") || !strcasecmp(ext, "st"))
snprintf(gdata.sys, sizeof(gdata.sys), "snes");