Assume device valid if it has no bus flags set.

This commit is contained in:
OBattler
2025-02-14 08:57:30 +01:00
parent a8cbb4deef
commit 32f2153f56

View File

@@ -797,7 +797,7 @@ device_is_valid(const device_t *device, int mch)
{
int ret = 1;
if (device != NULL)
if ((device != NULL) && ((device->flags & DEVICE_BUS) != 0))
ret = machine_has_bus(mch, device->flags & DEVICE_BUS);
return ret;