mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
add .md extension
some popular romset has binary dumps as .md, although there is also some old ROM copier format too?
This commit is contained in:
parent
c6f91b0ea3
commit
53b2e51c0b
2 changed files with 9 additions and 4 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
static const char *rom_exts[] = {
|
||||
"zip",
|
||||
"bin", "smd", "gen",
|
||||
"bin", "smd", "gen", "md",
|
||||
"iso", "cso", "cue",
|
||||
"32x",
|
||||
"sms",
|
||||
|
@ -37,11 +37,16 @@ static const char *rom_exts[] = {
|
|||
// rrrr rggg gggb bbbb
|
||||
static unsigned short fname2color(const char *fname)
|
||||
{
|
||||
const char *ext = fname + strlen(fname) - 3;
|
||||
static const char *other_exts[] = { "gmv", "pat" };
|
||||
const char *ext;
|
||||
int i;
|
||||
|
||||
if (ext < fname) ext = fname;
|
||||
ext = strrchr(fname, '.');
|
||||
if (ext++ == NULL) {
|
||||
ext = fname + strlen(fname) - 3;
|
||||
if (ext < fname) ext = fname;
|
||||
}
|
||||
|
||||
for (i = 0; rom_exts[i] != NULL; i++)
|
||||
if (strcasecmp(ext, rom_exts[i]) == 0) return 0xbdff; // FIXME: mk defines
|
||||
for (i = 0; i < array_size(other_exts); i++)
|
||||
|
|
|
@ -187,7 +187,7 @@ void retro_get_system_info(struct retro_system_info *info)
|
|||
memset(info, 0, sizeof(*info));
|
||||
info->library_name = "PicoDrive";
|
||||
info->library_version = VERSION;
|
||||
info->valid_extensions = "bin|gen|smd|32x|cue|iso|sms";
|
||||
info->valid_extensions = "bin|gen|smd|md|32x|cue|iso|sms";
|
||||
info->need_fullpath = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue