Store model in config file as name rather than number.

This commit is contained in:
SarahW 2017-02-24 19:42:43 +00:00
commit e6307a43e2
3 changed files with 71 additions and 45 deletions

View file

@ -5,8 +5,9 @@
typedef struct
{
char name[24];
char name[32];
int id;
char internal_name[24];
struct
{
char name[8];
@ -28,5 +29,7 @@ int model_count();
int model_getromset();
int model_getmodel(int romset);
char *model_getname();
char *model_get_internal_name();
int model_get_model_from_internal_name(char *s);
void model_init();
struct device_t *model_getdevice(int model);