core+platforms, harmonise supported extensions

This commit is contained in:
kub 2022-09-14 19:23:58 +00:00
parent 2ec448a8ce
commit 6ce10a4308
4 changed files with 6 additions and 6 deletions

View file

@ -19,7 +19,7 @@
#include <zlib.h>
static int rom_alloc_size;
static const char *rom_exts[] = { "bin", "gen", "smd", "iso", "sms", "gg", "sg" };
static const char *rom_exts[] = { "bin", "gen", "smd", "md", "32x", "pco", "iso", "sms", "gg", "sg", "sc" };
void (*PicoCartUnloadHook)(void);
void (*PicoCartMemSetup)(void);

View file

@ -34,8 +34,8 @@ static void get_ext(const char *file, char *ext)
static int detect_media(const char *fname, const unsigned char *rom, unsigned int romsize)
{
static const short sms_offsets[] = { 0x7ff0, 0x3ff0, 0x1ff0 };
static const char *sms_exts[] = { "sms", "gg", "sg" };
static const char *md_exts[] = { "gen", "smd", "md" };
static const char *sms_exts[] = { "sms", "gg", "sg", "sc" };
static const char *md_exts[] = { "gen", "smd", "md", "32x" };
static const char *pico_exts[] = { "pco" };
char buff0[512], buff[32];
unsigned short *d16 = NULL;