New 'available' function in device API, to determine whether required ROMs are available. Currently used when building soundcard menu, to remove AWE32 when required ROM dump is not present.

This commit is contained in:
TomW 2013-11-04 18:23:15 +00:00
commit bd873de9ac
35 changed files with 92 additions and 39 deletions

View file

@ -43,6 +43,16 @@ static SOUND_CARD sound_cards[] =
{"", NULL}
};
int sound_card_available(int card)
{
if (sound_cards[card].device)
{
if (sound_cards[card].device->available)
return sound_cards[card].device->available();
}
return 1;
}
char *sound_card_getname(int card)
{
return sound_cards[card].name;