mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
better solution for rom_ignore in softlists. nw.
This commit is contained in:
parent
983ce4cae0
commit
221cce0f06
@ -1139,8 +1139,6 @@ void softlist_parser::parse_data_start(const char *tagname, const char **attribu
|
||||
add_rom_entry(nullptr, nullptr, offset, length, ROMENTRYTYPE_RELOAD);
|
||||
else if (loadflag != nullptr && strcmp(loadflag, "continue") == 0)
|
||||
add_rom_entry(nullptr, nullptr, offset, length, ROMENTRYTYPE_CONTINUE | ROM_INHERITFLAGS);
|
||||
else if (loadflag != nullptr && strcmp(loadflag, "ignore") == 0)
|
||||
add_rom_entry(nullptr, nullptr, offset, length, ROMENTRYTYPE_IGNORE | ROM_INHERITFLAGS);
|
||||
else if (loadflag != nullptr && strcmp(loadflag, "fill") == 0)
|
||||
add_rom_entry(nullptr, (const char *)(FPTR)(strtol(value, nullptr, 0) & 0xff), offset, length, ROMENTRYTYPE_FILL);
|
||||
else if (name != nullptr)
|
||||
@ -1181,6 +1179,11 @@ void softlist_parser::parse_data_start(const char *tagname, const char **attribu
|
||||
else
|
||||
parse_error("Rom name missing");
|
||||
}
|
||||
else if (sizestr != nullptr && loadflag != nullptr && strcmp(loadflag, "ignore") == 0)
|
||||
{
|
||||
UINT32 length = strtol(sizestr, nullptr, 0);
|
||||
add_rom_entry(nullptr, nullptr, 0, length, ROMENTRYTYPE_IGNORE | ROM_INHERITFLAGS);
|
||||
}
|
||||
else
|
||||
parse_error("Incomplete rom definition");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user