From 192ab015798cbf28c9845412c05c9b85217263da Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 14 Apr 2022 22:56:38 +0000 Subject: [PATCH] core, improve extension handling --- pico/media.c | 2 +- platform/common/menu_pico.c | 4 ++-- platform/opendingux/data/default.gcw0.desktop | 2 +- platform/opendingux/data/default.retrofw.desktop | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pico/media.c b/pico/media.c index 9bdb6370..ca5036dc 100644 --- a/pico/media.c +++ b/pico/media.c @@ -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; diff --git a/platform/common/menu_pico.c b/platform/common/menu_pico.c index f5d77d1a..630d4e98 100644 --- a/platform/common/menu_pico.c +++ b/platform/common/menu_pico.c @@ -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", diff --git a/platform/opendingux/data/default.gcw0.desktop b/platform/opendingux/data/default.gcw0.desktop index 49668c32..17ff8cb4 100644 --- a/platform/opendingux/data/default.gcw0.desktop +++ b/platform/opendingux/data/default.gcw0.desktop @@ -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 diff --git a/platform/opendingux/data/default.retrofw.desktop b/platform/opendingux/data/default.retrofw.desktop index 7fcce634..36a01e5f 100644 --- a/platform/opendingux/data/default.retrofw.desktop +++ b/platform/opendingux/data/default.retrofw.desktop @@ -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 -- 2.39.5