summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/mc10.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2014-05-02 17:19:09 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2014-05-02 17:19:09 +0000
commit22457cd9cef4d84293ecfaac2d5f7c3d3aa8d728 (patch)
tree90130209944a6a727ce14e71dcae2414f0ba7af7 /src/mess/drivers/mc10.c
parent3f73720885195bf21229e1a8e89a982a818e503b (diff)
cassette config moved inline (nw)
Diffstat (limited to 'src/mess/drivers/mc10.c')
-rw-r--r--src/mess/drivers/mc10.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/mess/drivers/mc10.c b/src/mess/drivers/mc10.c
index bb09d505161..c833ed01f69 100644
--- a/src/mess/drivers/mc10.c
+++ b/src/mess/drivers/mc10.c
@@ -477,22 +477,6 @@ INPUT_PORTS_END
MACHINE DRIVERS
***************************************************************************/
-static const cassette_interface mc10_cassette_interface =
-{
- coco_cassette_formats,
- NULL,
- (cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
- NULL
-};
-
-static const cassette_interface alice32_cassette_interface =
-{
- alice32_cassette_formats,
- NULL,
- (cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
- "alice32_cass"
-};
-
static const mc6847_interface mc10_mc6847_intf =
{
"screen",
@@ -515,7 +499,9 @@ static MACHINE_CONFIG_START( mc10, mc10_state )
MCFG_SOUND_ADD("dac", DAC, 0)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
- MCFG_CASSETTE_ADD("cassette", mc10_cassette_interface)
+ MCFG_CASSETTE_ADD("cassette")
+ MCFG_CASSETTE_FORMATS(coco_cassette_formats)
+ MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
/* printer */
MCFG_DEVICE_ADD("printer", PRINTER, 0)
@@ -550,7 +536,10 @@ static MACHINE_CONFIG_START( alice32, mc10_state )
MCFG_SOUND_ADD("dac", DAC, 0)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
- MCFG_CASSETTE_ADD("cassette", alice32_cassette_interface)
+ MCFG_CASSETTE_ADD("cassette")
+ MCFG_CASSETTE_FORMATS(alice32_cassette_formats)
+ MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
+ MCFG_CASSETTE_INTERFACE("alice32_cass")
/* printer */
MCFG_DEVICE_ADD("printer", PRINTER, 0)