Fixed ROM autoselection.

Video card menu now only lists cards for which ROMs are present again.
This commit is contained in:
TomW 2013-12-29 15:33:29 +00:00
commit c05d6693b6
3 changed files with 24 additions and 7 deletions

View file

@ -86,6 +86,20 @@ int model_getromset()
return models[model].id;
}
int model_getmodel(int romset)
{
int c = 0;
while (models[c].id != -1)
{
if (models[c].id == romset)
return c;
c++;
}
return 0;
}
char *model_getname()
{
return models[model].name;