diff options
Diffstat (limited to 'src/mame/machine/wpc_pic.cpp')
-rw-r--r-- | src/mame/machine/wpc_pic.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/machine/wpc_pic.cpp b/src/mame/machine/wpc_pic.cpp index f09b4bb48f7..353454fb7a1 100644 --- a/src/mame/machine/wpc_pic.cpp +++ b/src/mame/machine/wpc_pic.cpp @@ -6,7 +6,7 @@ const device_type WPC_PIC = &device_creator<wpc_pic_device>; -wpc_pic_device::wpc_pic_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock) : +wpc_pic_device::wpc_pic_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, WPC_PIC, "Williams Pinball Controller PIC Security", tag, owner, clock, "wpc_pic", __FILE__), swarray(*this, ":SW") { @@ -38,7 +38,7 @@ READ8_MEMBER(wpc_pic_device::read) data = swarray[curcmd - 0x16]->read(); else - logerror("%s: cmd=%02x (%04x)\n", tag().c_str(), curcmd, space.device().safe_pc()); + logerror("%s: cmd=%02x (%04x)\n", tag(), curcmd, space.device().safe_pc()); return data; } @@ -50,7 +50,7 @@ void wpc_pic_device::check_game_id() UINT32 v = (i >> 8) * 0x3133 + (i & 0xff) * 0x3231; v = v & 0xffffff; if(v == cmp) - logerror("%s: Detected game id %03d\n", tag().c_str(), i); + logerror("%s: Detected game id %03d\n", tag(), i); } } @@ -60,7 +60,7 @@ WRITE8_MEMBER(wpc_pic_device::write) cmpchk[3-chk_count] = data; if(data != cmpchk[3-chk_count]) { - logerror("%s: WARNING: validation error, checksum[%d] got %02x, expected %02x\n", tag().c_str(), 3-chk_count, data, chk[3-chk_count]); + logerror("%s: WARNING: validation error, checksum[%d] got %02x, expected %02x\n", tag(), 3-chk_count, data, chk[3-chk_count]); if(chk_count == 1) check_game_id(); } @@ -79,7 +79,7 @@ WRITE8_MEMBER(wpc_pic_device::write) else if(data == 0x20) chk_count = 3; else if((data < 0x16 || data >= 0x1e) && ((data & 0xf0) != 0x70)) - logerror("%s: write %02x (%04x)\n", tag().c_str(), data, space.device().safe_pc()); + logerror("%s: write %02x (%04x)\n", tag(), data, space.device().safe_pc()); curcmd = data; } |