diff --git a/src/device/cassette.c b/src/device/cassette.c index ac79edff2..5cde2fbd0 100644 --- a/src/device/cassette.c +++ b/src/device/cassette.c @@ -715,7 +715,7 @@ cassette_init(UNUSED(const device_t *info)) const device_t cassette_device = { .name = "IBM PC/PCjr Cassette Device", .internal_name = "cassette", - .flags = 0, + .flags = DEVICE_CASETTE, .local = 0, .init = cassette_init, .close = cassette_close, diff --git a/src/include/86box/device.h b/src/include/86box/device.h index 1c3ef1ef3..4cc283a25 100644 --- a/src/include/86box/device.h +++ b/src/include/86box/device.h @@ -79,6 +79,7 @@ // #define CONFIG_STANDALONE 257 /* not available on the on-board variant */ enum { + DEVICE_CASETTE = 1, /* requires a Casette Port */ DEVICE_SIDECAR = 2, /* requires an IBM PCjr */ DEVICE_ISA = 4, /* requires the ISA bus */ DEVICE_XT_KBC = 8, /* requires an XT-compatible keyboard controller */ diff --git a/src/include/86box/machine.h b/src/include/86box/machine.h index 52af90581..b2e4c01f2 100644 --- a/src/include/86box/machine.h +++ b/src/include/86box/machine.h @@ -67,7 +67,7 @@ #define MACHINE_AGP (MACHINE_BUS_AGP | MACHINE_PCI) /* sys is AT-compatible with AGP */ #define MACHINE_AGP98 (MACHINE_BUS_AGP | MACHINE_PCI98) /* sys is NEC PC-98x1 series with AGP (did that even exist?) */ -#define MACHINE_PC5150 (MACHINE_PC | MACHINE_CASSETTE) /* sys is IBM PC 5150 */ +#define MACHINE_PC5150 (MACHINE_CASSETTE | MACHINE_PC) /* sys is IBM PC 5150 */ #define MACHINE_PCJR (MACHINE_CASSETTE | MACHINE_BUS_SIDECAR) /* sys is PCjr */ #define MACHINE_PS2 (MACHINE_AT | MACHINE_BUS_PS2) /* sys is PS/2 */ #define MACHINE_PS2_MCA (MACHINE_MCA | MACHINE_BUS_PS2) /* sys is MCA PS/2 */