summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-05-15 05:43:28 +1000
committer Vas Crabb <vas@vastheman.com>2018-05-15 05:43:28 +1000
commit23325728009b85bad264dcc175c8f1b8c5e51678 (patch)
tree47e270288dae6d6e6f2cce33c779e94ffc2d39ab /src/devices/imagedev
parentd1f8569f4d2729631ef5c3fd6de4e3cfca9856e8 (diff)
More cleanup/streamlining of machine configuration and macros:
* Get rid of implicit prefix for GFX decode names and prefix them all * Get rid of special macro for adding GFXDECODE in favour of constructor * Make empty GFX decode a static member of interface * Allow palette to be specified to GFXDECODE as a device finder * Removed diserial.h from emu.h as it's used relatively infrequently Also fix darkseal and vaportra propely. The palette device automatically attaches itself to a share with matching tag. The correct solution here is to rename one or the other out of the way, since it was never attached to a share before.
Diffstat (limited to 'src/devices/imagedev')
-rw-r--r--src/devices/imagedev/midiin.h7
-rw-r--r--src/devices/imagedev/midiout.h9
2 files changed, 10 insertions, 6 deletions
diff --git a/src/devices/imagedev/midiin.h b/src/devices/imagedev/midiin.h
index 776112b2625..aaba86fc2d1 100644
--- a/src/devices/imagedev/midiin.h
+++ b/src/devices/imagedev/midiin.h
@@ -8,11 +8,12 @@
*********************************************************************/
-#ifndef MAME_DEVICES_IMAGEDEV_MIDIIN_H
-#define MAME_DEVICES_IMAGEDEV_MIDIIN_H
+#ifndef MAME_IMAGEDEV_MIDIIN_H
+#define MAME_IMAGEDEV_MIDIIN_H
#pragma once
+#include "diserial.h"
#define MCFG_MIDIIN_INPUT_CB(_devcb) \
devcb = &downcast<midiin_device &>(*device).set_input_callback(DEVCB_##_devcb);
@@ -76,4 +77,4 @@ DECLARE_DEVICE_TYPE(MIDIIN, midiin_device)
// device iterator
typedef device_type_iterator<midiin_device> midiin_device_iterator;
-#endif // MAME_DEVICES_IMAGEDEV_MIDIIN_H
+#endif // MAME_IMAGEDEV_MIDIIN_H
diff --git a/src/devices/imagedev/midiout.h b/src/devices/imagedev/midiout.h
index 0bd1c0c38af..713c783b992 100644
--- a/src/devices/imagedev/midiout.h
+++ b/src/devices/imagedev/midiout.h
@@ -8,9 +8,12 @@
*********************************************************************/
-#ifndef MAME_DEVICES_IMAGEDEV_MIDIOUT_H
-#define MAME_DEVICES_IMAGEDEV_MIDIOUT_H
+#ifndef MAME_IMAGEDEV_MIDIOUT_H
+#define MAME_IMAGEDEV_MIDIOUT_H
+#pragma once
+
+#include "diserial.h"
/***************************************************************************
CONSTANTS
@@ -67,4 +70,4 @@ DECLARE_DEVICE_TYPE(MIDIOUT, midiout_device)
// device iterator
typedef device_type_iterator<midiout_device> midiout_device_iterator;
-#endif // MAME_DEVICES_IMAGEDEV_MIDIOUT_H
+#endif // MAME_IMAGEDEV_MIDIOUT_H