core, improve extension handling

This commit is contained in:
kub 2022-04-14 22:56:38 +00:00
parent 68a950875c
commit 192ab01579
4 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ static int detect_media(const char *fname)
{ {
static const short sms_offsets[] = { 0x7ff0, 0x3ff0, 0x1ff0 }; static const short sms_offsets[] = { 0x7ff0, 0x3ff0, 0x1ff0 };
static const char *sms_exts[] = { "sms", "gg", "sg" }; 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" }; static const char *pico_exts[] = { "pco" };
char buff0[512], buff[32]; char buff0[512], buff[32];
unsigned short *d16; unsigned short *d16;

View file

@ -38,8 +38,8 @@
#define REVISION "0" #define REVISION "0"
static const char *rom_exts[] = { static const char *rom_exts[] = {
"zip", "zip", "bin",
"bin", "smd", "gen", "md", "pco", "smd", "gen", "md",
"iso", "cso", "cue", "chd", "iso", "cso", "cue", "chd",
"32x", "32x",
"sms", "gg", "sg", "sms", "gg", "sg",

View file

@ -6,4 +6,4 @@ Exec=PicoDrive %f
Icon=megadrive Icon=megadrive
Terminal=false Terminal=false
Categories=emulators; 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

View file

@ -6,7 +6,7 @@ Icon=megadrive
Categories=emulators; Categories=emulators;
X-OD-Manual= X-OD-Manual=
X-OD-Selector= 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 Terminal=true
Type=Application Type=Application
StartupNotify=true StartupNotify=true