mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-07 08:08:04 -04:00
sms, improve system detection by extension
This commit is contained in:
parent
543e97f6f0
commit
40172b9319
2 changed files with 3 additions and 4 deletions
|
@ -350,7 +350,7 @@ enum media_type_e PicoLoadMedia(const char *filename,
|
|||
// simple test for GG. Do this here since m.hardware is nulled in Insert
|
||||
if ((PicoIn.AHW & PAHW_SMS) && !PicoIn.hwSelect) {
|
||||
const char *ext = NULL;
|
||||
if (rom_file && rom_file->ext && (*rom_file->ext != '\0')) {
|
||||
if (rom_file && (*rom_file->ext != '\0')) {
|
||||
ext = rom_file->ext;
|
||||
}
|
||||
else if ((ext = strrchr(filename, '.'))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue