aboutsummaryrefslogtreecommitdiff
path: root/games/jollygood/more_extensions.diff
blob: 66d3f496b11096fc7dbbd466c60d1793041e8c82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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");