From: kub Date: Wed, 14 Sep 2022 19:23:58 +0000 (+0000) Subject: core+platforms, harmonise supported extensions X-Git-Tag: v2.00~300 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ce10a4308423683e6cfa92e44a0fff980fada57;p=picodrive.git core+platforms, harmonise supported extensions --- diff --git a/pico/cart.c b/pico/cart.c index 2ffe7b5e..8f9b6201 100644 --- a/pico/cart.c +++ b/pico/cart.c @@ -19,7 +19,7 @@ #include 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); diff --git a/pico/media.c b/pico/media.c index e79bb302..d1bec342 100644 --- a/pico/media.c +++ b/pico/media.c @@ -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; diff --git a/platform/common/menu_pico.c b/platform/common/menu_pico.c index 630d4e98..559e5cd3 100644 --- a/platform/common/menu_pico.c +++ b/platform/common/menu_pico.c @@ -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 }; diff --git a/platform/libretro/libretro.c b/platform/libretro/libretro.c index 7e6fd952..b213b6af 100644 --- a/platform/libretro/libretro.c +++ b/platform/libretro/libretro.c @@ -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; }