Fixed device_available().

This commit is contained in:
OBattler
2022-07-31 02:01:20 +02:00
parent f199ddcbcc
commit 64c67f3cde

View File

@@ -331,15 +331,17 @@ device_get_priv(const device_t *d)
int int
device_available(const device_t *d) device_available(const device_t *d)
{ {
device_config_t *config; device_config_t *config = NULL;
device_config_bios_t *bios; device_config_bios_t *bios = NULL;
int bf, roms_present = 0; int bf, roms_present = 0;
int i = 0; int i = 0;
#ifdef RELEASE_BUILD
if (d->flags & DEVICE_NOT_WORKING) return(0);
#endif
if (d != NULL) { if (d != NULL) {
#ifdef RELEASE_BUILD
if (d->flags & DEVICE_NOT_WORKING)
return(0);
#endif
config = (device_config_t *) d->config; config = (device_config_t *) d->config;
if (config != NULL) { if (config != NULL) {
while (config->type != -1) { while (config->type != -1) {