core, improve extension handling
authorkub <derkub@gmail.com>
Thu, 14 Apr 2022 22:56:38 +0000 (22:56 +0000)
committerkub <derkub@gmail.com>
Tue, 19 Apr 2022 21:18:56 +0000 (23:18 +0200)
pico/media.c
platform/common/menu_pico.c
platform/opendingux/data/default.gcw0.desktop
platform/opendingux/data/default.retrofw.desktop

index 9bdb637..ca5036d 100644 (file)
@@ -35,7 +35,7 @@ static int detect_media(const char *fname)
 {
   static const short sms_offsets[] = { 0x7ff0, 0x3ff0, 0x1ff0 };
   static const char *sms_exts[] = { "sms", "gg", "sg" };
-  static const char *md_exts[] = { "gen", "smd" };
+  static const char *md_exts[] = { "gen", "smd", "md" };
   static const char *pico_exts[] = { "pco" };
   char buff0[512], buff[32];
   unsigned short *d16;
index f5d77d1..630d4e9 100644 (file)
@@ -38,8 +38,8 @@
 #define REVISION "0"
 
 static const char *rom_exts[] = {
-       "zip",
-       "bin", "smd", "gen", "md",
+       "zip", "bin",
+       "pco", "smd", "gen", "md",
        "iso", "cso", "cue", "chd",
        "32x",
        "sms", "gg",  "sg",
index 49668c3..17ff8cb 100644 (file)
@@ -6,4 +6,4 @@ Exec=PicoDrive %f
 Icon=megadrive
 Terminal=false
 Categories=emulators;
-MimeType=.md;.smd;.bin;.sms;.gg;.sg;.cue;.chd;.32x;.zip;.7z
+MimeType=.md;.smd;.gen;.bin;.sms;.gg;.sg;.cue;.chd;.cso;.iso;.32x;.pco;.zip
index 7fcce63..36a01e5 100644 (file)
@@ -6,7 +6,7 @@ Icon=megadrive
 Categories=emulators;
 X-OD-Manual=
 X-OD-Selector=
-X-OD-Filter=.md,.smd,.bin,.sms,.gg,.sg,.cue,.chd,.32x,.zip,.7z
+X-OD-Filter=.md,.smd,.gen,.bin,.sms,.gg,.sg,.cue,.chd,.cso,.iso,.32x,.pco,.zip
 Terminal=true
 Type=Application
 StartupNotify=true