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:
TomW 2013-11-28 20:03:59 +00:00
commit 657aa19dd1
39 changed files with 183 additions and 133 deletions

View file

@ -1,6 +1,7 @@
typedef struct device_t
{
char name[50];
uint32_t flags;
void *(*init)();
void (*close)(void *p);
int (*available)();
@ -12,6 +13,12 @@ typedef struct device_t
void device_init();
void device_add(device_t *d);
void device_close_all();
int device_available(device_t *d);
void device_speed_changed();
void device_force_redraw();
char *device_add_status_info(char *s, int max_len);
enum
{
DEVICE_NOT_WORKING = 1 /*Device does not currently work correctly and will be disabled in a release build*/
};