2021-04-10 15:56:06 +00:00
|
|
|
#pragma option -WX -zCSHARED -k-
|
2021-01-28 19:34:05 +00:00
|
|
|
|
|
|
|
#include "platform.h"
|
2021-02-07 20:03:00 +00:00
|
|
|
#include "x86real.h"
|
2021-01-28 19:34:05 +00:00
|
|
|
#include "libs/kaja/kaja.h"
|
|
|
|
#include "th02/snd/snd.h"
|
|
|
|
|
|
|
|
bool16 snd_determine_mode(void)
|
|
|
|
{
|
2021-04-30 18:15:21 +00:00
|
|
|
_AH = PMD_GET_DRIVER_TYPE_AND_VERSION;
|
2021-01-28 19:34:05 +00:00
|
|
|
geninterrupt(PMD);
|
|
|
|
_BX = false;
|
|
|
|
if(_AL != 0xFF) {
|
|
|
|
_BX++;
|
|
|
|
snd_fm_possible = true;
|
|
|
|
} else {
|
|
|
|
_BL = snd_midi_active;
|
|
|
|
}
|
|
|
|
snd_active = _BL;
|
|
|
|
return _BX;
|
|
|
|
}
|
|
|
|
#pragma codestring "\x90"
|