mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
coco_midi: fix msvc build
This commit is contained in:
parent
0abd03a7a7
commit
777d511d61
@ -18,6 +18,7 @@
|
||||
|
||||
// ======================> coco_midi_device
|
||||
|
||||
namespace {
|
||||
class coco_midi_device :
|
||||
public device_t,
|
||||
public device_cococart_interface
|
||||
@ -62,6 +63,7 @@ coco_midi_device::coco_midi_device(const machine_config &mconfig, const char *ta
|
||||
: coco_midi_device(mconfig, COCO_MIDI, tag, owner, clock)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
void coco_midi_device::device_add_mconfig(machine_config &config)
|
||||
{
|
||||
@ -91,6 +93,7 @@ WRITE_LINE_MEMBER(coco_midi_device::acia_irq_w)
|
||||
set_line_value(line::CART, state == 0);
|
||||
}
|
||||
|
||||
namespace {
|
||||
dragon_midi_device::dragon_midi_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock)
|
||||
: coco_midi_device(mconfig, type, tag, owner, clock)
|
||||
{
|
||||
@ -100,6 +103,7 @@ dragon_midi_device::dragon_midi_device(const machine_config &mconfig, const char
|
||||
: dragon_midi_device(mconfig, DRAGON_MIDI, tag, owner, clock)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
void dragon_midi_device::device_start()
|
||||
{
|
||||
@ -108,5 +112,5 @@ void dragon_midi_device::device_start()
|
||||
write8sm_delegate(m_acia, FUNC(acia6850_device::write)));
|
||||
}
|
||||
|
||||
DEFINE_DEVICE_TYPE(COCO_MIDI, coco_midi_device, "coco_midi", "CoCo MIDI PAK");
|
||||
DEFINE_DEVICE_TYPE(DRAGON_MIDI, dragon_midi_device, "dragon_midi", "Dragon MIDI PAK");
|
||||
DEFINE_DEVICE_TYPE_PRIVATE(COCO_MIDI, device_cococart_interface, coco_midi_device, "coco_midi", "CoCo MIDI PAK")
|
||||
DEFINE_DEVICE_TYPE_PRIVATE(DRAGON_MIDI, device_cococart_interface, dragon_midi_device, "dragon_midi", "Dragon MIDI PAK")
|
||||
|
@ -3,12 +3,12 @@
|
||||
#ifndef MAME_BUS_COCO_COCO_MIDI_H
|
||||
#define MAME_BUS_COCO_COCO_MIDI_H
|
||||
|
||||
#include "cococart.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cococart.h"
|
||||
|
||||
// device type definition
|
||||
DECLARE_DEVICE_TYPE(COCO_MIDI, coco_midi_device)
|
||||
DECLARE_DEVICE_TYPE(DRAGON_MIDI, dragon_midi_device)
|
||||
DECLARE_DEVICE_TYPE(COCO_MIDI, device_cococart_interface)
|
||||
DECLARE_DEVICE_TYPE(DRAGON_MIDI, device_cococart_interface)
|
||||
|
||||
#endif // MAME_BUS_COCO_COCO_MIDI_H
|
||||
|
Loading…
Reference in New Issue
Block a user