Devices can now be marked as not working, and disabled in release builds.
Video card menu now build dynamically from list.
This commit is contained in:
parent
7416a24e99
commit
657aa19dd1
39 changed files with 183 additions and 133 deletions
12
src/device.c
12
src/device.c
|
|
@ -42,6 +42,18 @@ void device_close_all()
|
|||
}
|
||||
}
|
||||
|
||||
int device_available(device_t *d)
|
||||
{
|
||||
#ifdef RELEASE_BUILD
|
||||
if (d->flags & DEVICE_NOT_WORKING)
|
||||
return 0;
|
||||
#endif
|
||||
if (d->available)
|
||||
return d->available();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
void device_speed_changed()
|
||||
{
|
||||
int c;
|
||||
|
|
|
|||
Loading…
Reference in a new issue