Fixed device_available().
This commit is contained in:
12
src/device.c
12
src/device.c
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user