Skip to content

Commit

Permalink
Merge pull request #2497 from jriwanek-forks/config-bios2
Browse files Browse the repository at this point in the history
Fix compile
  • Loading branch information
OBattler committed Jul 23, 2022
2 parents e415a55 + 43239df commit 9c534f6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/include/86box/device.h
Expand Up @@ -52,6 +52,7 @@
#define CONFIG_HEX20 8
#define CONFIG_MAC 9
#define CONFIG_MIDI_IN 10
#define CONFIG_BIOS 11


enum {
Expand All @@ -77,6 +78,14 @@ typedef struct {
int value;
} device_config_selection_t;

typedef struct {
const char *name;
const char *internal_name;
int bios_type;
int files_no;
const char **files;
} device_config_bios_t;

typedef struct {
int16_t min;
int16_t max;
Expand All @@ -92,6 +101,7 @@ typedef struct {
const char *file_filter;
const device_config_spinner_t spinner;
const device_config_selection_t selection[16];
const device_config_bios_t *bios;
} device_config_t;

typedef struct _device_ {
Expand Down Expand Up @@ -161,6 +171,7 @@ extern void device_set_config_hex16(const char *s, int val);
extern void device_set_config_hex20(const char *s, int val);
extern void device_set_config_mac(const char *s, int val);
extern const char *device_get_config_string(const char *name);
#define device_get_config_bios device_get_config_string

extern char * device_get_internal_name(const device_t *d);

Expand Down

0 comments on commit 9c534f6

Please sign in to comment.