summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/softlist_dev.h
diff options
context:
space:
mode:
author andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
committer andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
commitb380514764cf857469bae61c11143a19f79a74c5 (patch)
tree63c8012e262618f08a332da31dd714281aa2c5ed /src/emu/softlist_dev.h
parentc24473ddff715ecec2e258a6eb38960cf8c8e98e (diff)
Revert "conflict resolution (nw)"
This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
Diffstat (limited to 'src/emu/softlist_dev.h')
-rw-r--r--src/emu/softlist_dev.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/emu/softlist_dev.h b/src/emu/softlist_dev.h
index 4370ec8a20d..50cd2e01753 100644
--- a/src/emu/softlist_dev.h
+++ b/src/emu/softlist_dev.h
@@ -40,6 +40,37 @@ enum software_compatibility
//**************************************************************************
+// MACROS
+//**************************************************************************
+
+#define MCFG_SOFTWARE_LIST_CONFIG(_list,_list_type) \
+ downcast<software_list_device &>(*device).set_type(_list, _list_type);
+
+#define MCFG_SOFTWARE_LIST_ADD( _tag, _list ) \
+ MCFG_DEVICE_ADD( _tag, SOFTWARE_LIST ) \
+ MCFG_SOFTWARE_LIST_CONFIG(_list, SOFTWARE_LIST_ORIGINAL_SYSTEM)
+
+#define MCFG_SOFTWARE_LIST_COMPATIBLE_ADD( _tag, _list ) \
+ MCFG_DEVICE_ADD( _tag, SOFTWARE_LIST ) \
+ MCFG_SOFTWARE_LIST_CONFIG(_list, SOFTWARE_LIST_COMPATIBLE_SYSTEM)
+
+#define MCFG_SOFTWARE_LIST_MODIFY( _tag, _list ) \
+ MCFG_DEVICE_MODIFY( _tag ) \
+ MCFG_SOFTWARE_LIST_CONFIG(_list, SOFTWARE_LIST_ORIGINAL_SYSTEM)
+
+#define MCFG_SOFTWARE_LIST_COMPATIBLE_MODIFY( _tag, _list ) \
+ MCFG_DEVICE_MODIFY( _tag ) \
+ MCFG_SOFTWARE_LIST_CONFIG(_list, SOFTWARE_LIST_COMPATIBLE_SYSTEM)
+
+#define MCFG_SOFTWARE_LIST_FILTER( _tag, _filter ) \
+ MCFG_DEVICE_MODIFY( _tag ) \
+ downcast<software_list_device &>(*device).set_filter(_filter);
+
+#define MCFG_SOFTWARE_LIST_REMOVE( _tag ) \
+ MCFG_DEVICE_REMOVE( _tag )
+
+
+//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************