From 3ed3c0b7a01a215323b74314784c9404eb715e9e Mon Sep 17 00:00:00 2001 From: soundsnow <109885044+soundsnow@users.noreply.github.com> Date: Mon, 17 Apr 2023 23:13:04 +0800 Subject: [PATCH] Sega Machines --- libretro.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/libretro.c b/libretro.c index 572a47e..b17f270 100644 --- a/libretro.c +++ b/libretro.c @@ -166,6 +166,20 @@ int get_media_type(const char* filename) } return MEDIA_TYPE_CART; } + else if(strcmp(extension, ".sc") == 0){ + if (is_auto){ + is_sega = true; + strcpy(msx_type, "SEGA - SC-3000"); + } + return MEDIA_TYPE_CART; + } + else if(strcmp(extension, ".sf") == 0){ + if (is_auto){ + is_sega = true; + strcpy(msx_type, "SEGA - SF-7000"); + } + return MEDIA_TYPE_CART; + } return MEDIA_TYPE_OTHER; } @@ -477,7 +491,7 @@ void retro_get_system_info(struct retro_system_info *info) #endif info->need_fullpath = true; info->block_extract = false; - info->valid_extensions = "rom|ri|mx1|mx2|dsk|col|sg|sc|cas|m3u"; + info->valid_extensions = "rom|ri|mx1|mx2|dsk|col|sg|sc|sf|cas|m3u"; } void retro_get_system_av_info(struct retro_system_av_info *info)