diff options
| author | 2020-08-28 13:11:27 +1000 | |
|---|---|---|
| committer | 2020-08-28 13:11:27 +1000 | |
| commit | 9f02fa058b7680ae66e4c270d998605d54e507f2 (patch) | |
| tree | 96b86a25c7315bd94513f798847a5a66e5109e2f /src/emu/device.cpp | |
| parent | 3cc6415c081ecd1cd0b8d49bfaf0f0f9e3afbdc7 (diff) | |
validity.cpp, devfind.cpp: Catch missing required I/O ports in systems (excluding slot cards)
Diffstat (limited to 'src/emu/device.cpp')
| -rw-r--r-- | src/emu/device.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/device.cpp b/src/emu/device.cpp index fe028719f2f..7196b75e18f 100644 --- a/src/emu/device.cpp +++ b/src/emu/device.cpp @@ -495,12 +495,12 @@ void device_t::set_machine(running_machine &machine) // list and return status //------------------------------------------------- -bool device_t::findit(bool isvalidation) const +bool device_t::findit(validity_checker *valid) const { bool allfound = true; for (finder_base *autodev = m_auto_finder_list; autodev != nullptr; autodev = autodev->next()) { - if (isvalidation) + if (valid) { // sanity checking char const *const tag = autodev->finder_tag(); @@ -517,7 +517,7 @@ bool device_t::findit(bool isvalidation) const continue; } } - allfound &= autodev->findit(isvalidation); + allfound &= autodev->findit(valid); } return allfound; } @@ -541,7 +541,7 @@ void device_t::resolve_pre_map() void device_t::resolve_post_map() { // find all the registered post-map objects - if (!findit(false)) + if (!findit(nullptr)) throw emu_fatalerror("Missing some required objects, unable to proceed"); // allow implementation to do additional setup |
