Fixed ROM autoselection.
Video card menu now only lists cards for which ROMs are present again.
This commit is contained in:
parent
f0cb44a033
commit
c05d6693b6
3 changed files with 24 additions and 7 deletions
14
src/model.c
14
src/model.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue