mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Merge pull request #600 from ajrhacker/master
Ignore invalid default slot options in software lists
This commit is contained in:
commit
588ee94e9e
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ bool emu_options::add_slot_options(const software_part *swpart)
|
|||
{
|
||||
std::string featurename = std::string(name).append("_default");
|
||||
const char *value = swpart->feature(featurename.c_str());
|
||||
if (value != nullptr)
|
||||
if (value != nullptr && (*value == '\0' || slot->option(value) != nullptr))
|
||||
set_default_value(name, value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue