diff options
author | Aaron Giles <aaron@aarongiles.com> | 2011-04-17 19:40:52 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2011-04-17 19:40:52 +0000 |
commit | 18c8bcb17fab4f20b6fc02526ad498fa4f56f289 (patch) | |
tree | b2d4997c9d8de0892a754505dd27bc8eb662a56b | |
parent | 59a98d5c7cb14c86d95273a3b38bf041cccb0f7a (diff) |
Add temporary hack to put driver search path back for device roms.
-rw-r--r-- | src/emu/audit.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/emu/audit.c b/src/emu/audit.c index 54b01eed122..3bceb3fb8b2 100644 --- a/src/emu/audit.c +++ b/src/emu/audit.c @@ -74,6 +74,10 @@ media_auditor::summary media_auditor::audit_media(const char *validation) // store validation for later m_validation = validation; +// temporary hack until romload is update: get the driver path and support it for +// all searches +const char *driverpath = m_enumerator.config().m_devicelist.find("root")->searchpath(); + // iterate over ROM sources and regions bool anyfound = false; bool anyrequired = false; @@ -81,10 +85,14 @@ media_auditor::summary media_auditor::audit_media(const char *validation) { // determine the search path for this source and iterate through the regions m_searchpath = source->searchpath(); - + // also determine if this is the driver's specific ROMs or not bool source_is_gamedrv = (dynamic_cast<const driver_device_config_base *>(source) != NULL); +// temporary hack: add the driver path +astring combinedpath(m_searchpath, ";", driverpath); +m_searchpath = combinedpath; + // now iterate over regions and ROMs within for (const rom_entry *region = rom_first_region(*source); region != NULL; region = rom_next_region(region)) for (const rom_entry *rom = rom_first_file(region); rom; rom = rom_next_file(rom)) |