diff options
Diffstat (limited to 'src/devices/bus/nes/nes_slot.cpp')
-rw-r--r-- | src/devices/bus/nes/nes_slot.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/bus/nes/nes_slot.cpp b/src/devices/bus/nes/nes_slot.cpp index f537f978561..7a4065a6d80 100644 --- a/src/devices/bus/nes/nes_slot.cpp +++ b/src/devices/bus/nes/nes_slot.cpp @@ -106,12 +106,12 @@ const device_type NES_CART_SLOT = &device_creator<nes_cart_slot_device>; device_nes_cart_interface::device_nes_cart_interface(const machine_config &mconfig, device_t &device) : device_slot_card_interface(mconfig, device), - m_prg(NULL), - m_vrom(NULL), - m_ciram(NULL), + m_prg(nullptr), + m_vrom(nullptr), + m_ciram(nullptr), m_prg_size(0), m_vrom_size(0), m_maincpu(nullptr), - m_mapper_sram(NULL), + m_mapper_sram(nullptr), m_mapper_sram_size(0), m_ce_mask(0), m_ce_state(0), @@ -148,7 +148,7 @@ device_nes_cart_interface::~device_nes_cart_interface() void device_nes_cart_interface::prg_alloc(size_t size, const char *tag) { - if (m_prg == NULL) + if (m_prg == nullptr) { m_prg = device().machine().memory().region_alloc(std::string(tag).append(NESSLOT_PRGROM_REGION_TAG).c_str(), size, 1, ENDIANNESS_LITTLE)->base(); m_prg_size = size; @@ -215,7 +215,7 @@ void device_nes_cart_interface::prg_alloc(size_t size, const char *tag) void device_nes_cart_interface::vrom_alloc(size_t size, const char *tag) { - if (m_vrom == NULL) + if (m_vrom == nullptr) { std::string tempstring(tag); tempstring.append(NESSLOT_CHRROM_REGION_TAG); @@ -371,7 +371,7 @@ inline void device_nes_cart_interface::chr_sanity_check( int source ) if (source == CHRRAM && m_vram.empty()) fatalerror("CHRRAM bankswitch with no VRAM\n"); - if (source == CHRROM && m_vrom == NULL) + if (source == CHRROM && m_vrom == nullptr) fatalerror("CHRROM bankswitch with no VROM\n"); } @@ -492,7 +492,7 @@ void device_nes_cart_interface::set_nt_page(int page, int source, int bank, int break; case EXRAM: case MMC5FILL: - base_ptr = NULL; + base_ptr = nullptr; break; case CIRAM: default: @@ -833,7 +833,7 @@ bool nes_cart_slot_device::call_load() { if (m_cart) { - if (software_entry() == NULL) + if (software_entry() == nullptr) { char magic[4]; |