summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/device.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-09-06 23:41:35 +1000
committer Vas Crabb <vas@vastheman.com>2021-09-06 23:41:35 +1000
commitfa9c035c8024e0f78fde882fb3e8437485ec91ae (patch)
tree4fb29b5714ac6c7fbde0aff8a60f0ee690a324bb /src/emu/device.cpp
parentf474673bc58555910852bae062f030283407c448 (diff)
Allow devices to specify a parent for the purpose of searching for ROMs.
Diffstat (limited to 'src/emu/device.cpp')
-rw-r--r--src/emu/device.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/device.cpp b/src/emu/device.cpp
index 51088b02d4a..8e80fe3c809 100644
--- a/src/emu/device.cpp
+++ b/src/emu/device.cpp
@@ -136,6 +136,8 @@ std::vector<std::string> device_t::searchpath() const
system = system->owner();
if (system)
result = system->searchpath();
+ if (type().parent_rom_device_type())
+ result.emplace(result.begin(), type().parent_rom_device_type()->shortname());
result.emplace(result.begin(), shortname());
return result;
}