mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(Console) Clean up ssnes_console_get_rom_ext
This commit is contained in:
parent
71189737de
commit
37b8585df4
@ -43,30 +43,15 @@ void ssnes_console_set_rom_ext(const char *ext)
|
||||
|
||||
const char *ssnes_console_get_rom_ext(void)
|
||||
{
|
||||
const char *id = snes_library_id();
|
||||
const char *retval;
|
||||
const char *id = snes_library_id();
|
||||
|
||||
if (*g_rom_ext)
|
||||
return g_rom_ext;
|
||||
// SNES9x / bSNES
|
||||
if (strstr(id, "SNES"))
|
||||
return "smc|fig|sfc|gd3|gd7|dx2|bsx|swc|zip|SMC|FIG|SFC|BSX|GD3|GD7|DX2|SWC|ZIP";
|
||||
// FCEU Next
|
||||
else if (strstr(id, "FCEU"))
|
||||
return "fds|FDS|zip|ZIP|nes|NES|unif|UNIF";
|
||||
// VBA Next / Meteor
|
||||
else if (strstr(id, "VBA") || strstr(id, "Meteor"))
|
||||
return "gb|gbc|gba|GBA|GB|GBC|zip|ZIP";
|
||||
// Gambatte
|
||||
else if (strstr(id, "gambatte"))
|
||||
return "gb|gbc|GB|GBC|zip|ZIP";
|
||||
// FBA Next
|
||||
else if (strstr(id, "FB Alpha"))
|
||||
return "zip|ZIP";
|
||||
// Genesis Plus GX/Next
|
||||
else if (strstr(id, "Genesis Plus GX"))
|
||||
return "md|smd|bin|gen|zip|MD|SMD|bin|GEN|ZIP|sms|SMS|gg|GG|sg|SG";
|
||||
retval = g_rom_ext;
|
||||
else
|
||||
retval = "ZIP|zip";
|
||||
|
||||
return NULL;
|
||||
return retval;
|
||||
}
|
||||
|
||||
void ssnes_console_name_from_id(char *name, size_t size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user