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;

View file

@ -42,7 +42,7 @@ static const char *rom_exts[] = {
"pco", "smd", "gen", "md",
"iso", "cso", "cue", "chd",
"32x",
"sms", "gg", "sg",
"sms", "gg", "sg", "sc",
NULL
};

View file

@ -616,7 +616,7 @@ void retro_set_environment(retro_environment_t cb)
static const struct retro_system_content_info_override content_overrides[] = {
{
"gen|smd|md|32x|sms|gg|sg|68k|sgd|pco", /* extensions */
"gen|smd|md|32x|sms|gg|sg|sc|68k|sgd|pco", /* extensions */
#if defined(LOW_MEMORY)
true, /* need_fullpath */
#else
@ -667,7 +667,7 @@ void retro_get_system_info(struct retro_system_info *info)
#define _GIT_VERSION "-" GIT_VERSION
#endif
info->library_version = VERSION _GIT_VERSION;
info->valid_extensions = "bin|gen|smd|md|32x|cue|iso|chd|sms|gg|m3u|68k|sgd|pco";
info->valid_extensions = "bin|gen|smd|md|32x|cue|iso|chd|sms|gg|sg|sc|m3u|68k|sgd|pco";
info->need_fullpath = true;
}