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:
parent
4894e97dc5
commit
bd873de9ac
35 changed files with 92 additions and 39 deletions
10
src/sound.c
10
src/sound.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue