mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
romload.cpp: Eliminate extraneous machine argument (nw)
This commit is contained in:
parent
36d37333ff
commit
adb6044c4f
@ -1239,9 +1239,9 @@ void rom_load_manager::process_disk_entries(const char *regiontag, const rom_ent
|
|||||||
flags for the given device
|
flags for the given device
|
||||||
-------------------------------------------------*/
|
-------------------------------------------------*/
|
||||||
|
|
||||||
void rom_load_manager::normalize_flags_for_device(running_machine &machine, const char *rgntag, u8 &width, endianness_t &endian)
|
void rom_load_manager::normalize_flags_for_device(const char *rgntag, u8 &width, endianness_t &endian)
|
||||||
{
|
{
|
||||||
device_t *device = machine.root_device().subdevice(rgntag);
|
device_t *device = machine().root_device().subdevice(rgntag);
|
||||||
device_memory_interface *memory;
|
device_memory_interface *memory;
|
||||||
if (device != nullptr && device->interface(memory))
|
if (device != nullptr && device->interface(memory))
|
||||||
{
|
{
|
||||||
@ -1341,7 +1341,7 @@ void rom_load_manager::load_software_part_region(device_t &device, software_list
|
|||||||
memory_region *memregion = machine().root_device().memregion(regiontag.c_str());
|
memory_region *memregion = machine().root_device().memregion(regiontag.c_str());
|
||||||
if (memregion != nullptr)
|
if (memregion != nullptr)
|
||||||
{
|
{
|
||||||
normalize_flags_for_device(machine(), regiontag.c_str(), width, endianness);
|
normalize_flags_for_device(regiontag.c_str(), width, endianness);
|
||||||
|
|
||||||
/* clear old region (todo: should be moved to an image unload function) */
|
/* clear old region (todo: should be moved to an image unload function) */
|
||||||
machine().memory().region_free(memregion->name());
|
machine().memory().region_free(memregion->name());
|
||||||
@ -1417,7 +1417,7 @@ void rom_load_manager::process_region_list()
|
|||||||
/* if this is a device region, override with the device width and endianness */
|
/* if this is a device region, override with the device width and endianness */
|
||||||
u8 width = ROMREGION_GETWIDTH(region) / 8;
|
u8 width = ROMREGION_GETWIDTH(region) / 8;
|
||||||
endianness_t endianness = ROMREGION_ISBIGENDIAN(region) ? ENDIANNESS_BIG : ENDIANNESS_LITTLE;
|
endianness_t endianness = ROMREGION_ISBIGENDIAN(region) ? ENDIANNESS_BIG : ENDIANNESS_LITTLE;
|
||||||
normalize_flags_for_device(machine(), regiontag.c_str(), width, endianness);
|
normalize_flags_for_device(regiontag.c_str(), width, endianness);
|
||||||
|
|
||||||
/* remember the base and length */
|
/* remember the base and length */
|
||||||
m_region = machine().memory().region_alloc(regiontag.c_str(), regionlength, width, endianness);
|
m_region = machine().memory().region_alloc(regiontag.c_str(), regionlength, width, endianness);
|
||||||
|
@ -508,7 +508,7 @@ private:
|
|||||||
void process_rom_entries(const char *regiontag, const rom_entry *parent_region, const rom_entry *romp, device_t *device, bool from_list);
|
void process_rom_entries(const char *regiontag, const rom_entry *parent_region, const rom_entry *romp, device_t *device, bool from_list);
|
||||||
chd_error open_disk_diff(emu_options &options, const rom_entry *romp, chd_file &source, chd_file &diff_chd);
|
chd_error open_disk_diff(emu_options &options, const rom_entry *romp, chd_file &source, chd_file &diff_chd);
|
||||||
void process_disk_entries(const char *regiontag, const rom_entry *parent_region, const rom_entry *romp, const char *locationtag);
|
void process_disk_entries(const char *regiontag, const rom_entry *parent_region, const rom_entry *romp, const char *locationtag);
|
||||||
void normalize_flags_for_device(running_machine &machine, const char *rgntag, u8 &width, endianness_t &endian);
|
void normalize_flags_for_device(const char *rgntag, u8 &width, endianness_t &endian);
|
||||||
void process_region_list();
|
void process_region_list();
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user