diff options
author | 2010-01-21 03:56:53 +0000 | |
---|---|---|
committer | 2010-01-21 03:56:53 +0000 | |
commit | a5668c2eb9d17e3e51f3230db68d3aec09c34507 (patch) | |
tree | 006e76de745dde9508f521d2d6998a00a979de1e /src/emu/romload.c | |
parent | c12ffe8e5f3932e69e9139dc362a0f4d124ce9ed (diff) |
Made direct accessors for device configuration state. Currently they
just call through to the get info function. Removed old macros that
wrapped calls.
Diffstat (limited to 'src/emu/romload.c')
-rw-r--r-- | src/emu/romload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/romload.c b/src/emu/romload.c index 576318ee0a7..6767deeedff 100644 --- a/src/emu/romload.c +++ b/src/emu/romload.c @@ -1230,20 +1230,20 @@ static void process_disk_entries(rom_load_data *romdata, const char *regiontag, static UINT32 normalize_flags_for_device(running_machine *machine, UINT32 startflags, const char *rgntag) { running_device *device = machine->device(rgntag); - if (device != NULL && device_get_databus_width(device, ADDRESS_SPACE_0) != 0) + if (device != NULL && device->databus_width(0) != 0) { int buswidth; /* set the endianness */ startflags &= ~ROMREGION_ENDIANMASK; - if (device_get_endianness(device) == ENDIANNESS_LITTLE) + if (device->endianness() == ENDIANNESS_LITTLE) startflags |= ROMREGION_LE; else startflags |= ROMREGION_BE; /* set the width */ startflags &= ~ROMREGION_WIDTHMASK; - buswidth = device_get_databus_width(device, ADDRESS_SPACE_0); + buswidth = device->databus_width(0); if (buswidth <= 8) startflags |= ROMREGION_8BIT; else if (buswidth <= 16) |