summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine
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/machine
parent3f73720885195bf21229e1a8e89a982a818e503b (diff)
cassette config moved inline (nw)
Diffstat (limited to 'src/mess/machine')
-rw-r--r--src/mess/machine/coco.c14
-rw-r--r--src/mess/machine/genpc.c11
2 files changed, 2 insertions, 23 deletions
diff --git a/src/mess/machine/coco.c b/src/mess/machine/coco.c
index 2a9ec8143b5..19fa5fd1b12 100644
--- a/src/mess/machine/coco.c
+++ b/src/mess/machine/coco.c
@@ -57,7 +57,6 @@ DAC and bitbanger values written should be reflected in the read.
#include "includes/coco.h"
#include "cpu/m6809/m6809.h"
-#include "formats/coco_cas.h"
#include "debug/debugcpu.h"
@@ -1199,19 +1198,6 @@ const cococart_interface coco_state::cartridge_config =
};
-//-------------------------------------------------
-// coco_cassette_interface
-//-------------------------------------------------
-
-const cassette_interface coco_state::coco_cassette_interface =
-{
- coco_cassette_formats,
- NULL,
- (cassette_state)(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED),
- NULL
-};
-
-
/***************************************************************************
DISASSEMBLY OVERRIDE (OS9 syscalls)
diff --git a/src/mess/machine/genpc.c b/src/mess/machine/genpc.c
index aacc89b7686..7c5139b4d1d 100644
--- a/src/mess/machine/genpc.c
+++ b/src/mess/machine/genpc.c
@@ -600,21 +600,14 @@ const device_type IBM5150_MOTHERBOARD = &device_creator<ibm5150_mb_device>;
//**************************************************************************
// DEVICE CONFIGURATION
//**************************************************************************
-static const cassette_interface ibm5150_cassette_interface =
-{
- cassette_default_formats,
- NULL,
- (cassette_state)(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
- NULL
-};
-
static MACHINE_CONFIG_FRAGMENT( ibm5150_mb_config )
MCFG_FRAGMENT_ADD(ibm5160_mb_config)
MCFG_DEVICE_MODIFY("pc_kbdc")
MCFG_PC_KBDC_OUT_CLOCK_CB(WRITELINE(ibm5150_mb_device, keyboard_clock_w))
- MCFG_CASSETTE_ADD( "cassette", ibm5150_cassette_interface )
+ MCFG_CASSETTE_ADD( "cassette" )
+ MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
MACHINE_CONFIG_END