diff options
| author | 2021-09-06 23:41:35 +1000 | |
|---|---|---|
| committer | 2021-09-06 23:41:35 +1000 | |
| commit | fa9c035c8024e0f78fde882fb3e8437485ec91ae (patch) | |
| tree | 4fb29b5714ac6c7fbde0aff8a60f0ee690a324bb /src/emu/device.cpp | |
| parent | f474673bc58555910852bae062f030283407c448 (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.cpp | 2 |
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; } |
