summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/psx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/psx.cpp')
-rw-r--r--src/mame/drivers/psx.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/mame/drivers/psx.cpp b/src/mame/drivers/psx.cpp
index e7f09bb3d00..e5e313c67b6 100644
--- a/src/mame/drivers/psx.cpp
+++ b/src/mame/drivers/psx.cpp
@@ -29,17 +29,15 @@
#include <zlib.h>
-#define PSXCD_TAG "psxcd"
-
class psx1_state : public driver_device
{
public:
- psx1_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ psx1_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_ram(*this, "maincpu:ram"),
m_parallel(*this, "parallel"),
- m_psxcd(*this, PSXCD_TAG)
+ m_psxcd(*this, "psxcd")
{
}
@@ -521,8 +519,8 @@ void psx1_state::subcpu_map(address_map &map)
void psx1_state::psx_base(machine_config &config)
{
m_maincpu->set_addrmap(AS_PROGRAM, &psx1_state::psx_map);
- m_maincpu->cd_read().set(PSXCD_TAG, FUNC(psxcd_device::read));
- m_maincpu->cd_write().set(PSXCD_TAG, FUNC(psxcd_device::write));
+ m_maincpu->cd_read().set(m_psxcd, FUNC(psxcd_device::read));
+ m_maincpu->cd_write().set(m_psxcd, FUNC(psxcd_device::write));
m_maincpu->subdevice<ram_device>("ram")->set_default_size("2M");
psxcontrollerports_device &controllers(PSXCONTROLLERPORTS(config, "controllers", 0));
@@ -545,8 +543,8 @@ void psx1_state::psx_base(machine_config &config)
spu.add_route(0, "lspeaker", 1.00);
spu.add_route(1, "rspeaker", 1.00);
- quickload_image_device &quickload(QUICKLOAD(config, "quickload", 0));
- quickload.set_handler(snapquick_load_delegate(&QUICKLOAD_LOAD_NAME(psx1_state, psx_exe_load), this), "cpe,exe,psf,psx", 0);
+ quickload_image_device &quickload(QUICKLOAD(config, "quickload"));
+ quickload.set_handler(snapquick_load_delegate(&QUICKLOAD_LOAD_NAME(psx1_state, psx_exe_load), this), "cpe,exe,psf,psx");
PSX_PARALLEL_SLOT(config, "parallel", psx_parallel_devices, nullptr);