mirror of
https://github.com/holub/mame
synced 2025-04-19 23:12:11 +03:00
render: don't add parent set external artwork if artwork found
This commit is contained in:
parent
295387628b
commit
94fe22aab1
@ -1593,10 +1593,13 @@ void render_target::load_additional_layout_files(const char *basename, bool have
|
||||
int cloneof = driver_list::clone(system);
|
||||
while (0 <= cloneof)
|
||||
{
|
||||
if (!load_layout_file(driver_list::driver(cloneof).name, driver_list::driver(cloneof).name))
|
||||
m_external_artwork |= load_layout_file(driver_list::driver(cloneof).name, "default");
|
||||
else
|
||||
m_external_artwork = true;
|
||||
if (!m_external_artwork || driver_list::driver(cloneof).flags & MACHINE_IS_BIOS_ROOT)
|
||||
{
|
||||
if (!load_layout_file(driver_list::driver(cloneof).name, driver_list::driver(cloneof).name))
|
||||
m_external_artwork |= load_layout_file(driver_list::driver(cloneof).name, "default");
|
||||
else
|
||||
m_external_artwork = true;
|
||||
}
|
||||
|
||||
// Check the parent of the parent to cover bios based artwork
|
||||
const game_driver &parent(driver_list::driver(cloneof));
|
||||
|
Loading…
Reference in New Issue
Block a user