diff options
Diffstat (limited to 'src/mame/machine/xbox.cpp')
-rw-r--r-- | src/mame/machine/xbox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/machine/xbox.cpp b/src/mame/machine/xbox.cpp index 24b8b526102..e9e2db9a630 100644 --- a/src/mame/machine/xbox.cpp +++ b/src/mame/machine/xbox.cpp @@ -30,11 +30,11 @@ bool xbox_base_state::find_bios_hash(running_machine &mach, int bios, uint32_t & uint32_t crc = 0; const std::vector<rom_entry> &rev = mach.root_device().rom_region_vector(); - for (rom_entry re : rev) + for (rom_entry const &re : rev) { - if ((re.flags() & ROMENTRY_TYPEMASK) == ROMENTRYTYPE_ROM) + if (ROMENTRY_ISFILE(re)) { - if ((re.flags() & ROM_BIOSFLAGSMASK) == ROM_BIOS(bios + 1)) + if (ROM_GETBIOSFLAGS(re) == (bios + 1)) { const std::string &h = re.hashdata(); util::hash_collection hc(h.c_str()); |