From 5f5a0dc2a64317c81b88b3abc60a3ba3091d104d Mon Sep 17 00:00:00 2001 From: Alexander Babikov Date: Fri, 25 Jun 2021 21:02:28 +0500 Subject: [PATCH] Move the Super I/O game port flag to a #define --- src/game/gameport.c | 2 +- src/include/86box/gameport.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/gameport.c b/src/game/gameport.c index c9a388382..b0caff22a 100644 --- a/src/game/gameport.c +++ b/src/game/gameport.c @@ -360,7 +360,7 @@ gameport_add(const device_t *gameport_type) { /* Prevent a standalone game port from being added later on, unless this is an unused Super I/O game port (no MACHINE_GAMEPORT machine flag). */ - if (!(gameport_type->local & 0x1000000) || (machines[machine].flags & MACHINE_GAMEPORT)) + if (!(gameport_type->local & GAMEPORT_SIO) || (machines[machine].flags & MACHINE_GAMEPORT)) standalone_gameport_type = NULL; /* Add game port device. */ diff --git a/src/include/86box/gameport.h b/src/include/86box/gameport.h index be8eec813..25027d59e 100644 --- a/src/include/86box/gameport.h +++ b/src/include/86box/gameport.h @@ -33,6 +33,7 @@ #define JOYSTICK_PRESENT(n) (joystick_state[n].plat_joystick_nr != 0) +#define GAMEPORT_SIO 0x1000000 typedef struct { char name[260];