mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-28 12:33:04 +00:00
Avoid segfaults if mockingboard not initialized
This commit is contained in:
parent
b717e829a7
commit
43f6eff62e
@ -1679,7 +1679,7 @@ void MB_Initialize()
|
||||
|
||||
g_bMBAvailable = MB_DSInit();
|
||||
if (!g_bMBAvailable) {
|
||||
MockingboardVoice->bMute = true;
|
||||
//MockingboardVoice->bMute = true;
|
||||
g_SoundcardType = CT_Empty;
|
||||
return;
|
||||
}
|
||||
@ -2085,6 +2085,10 @@ void MB_EndOfVideoFrame()
|
||||
if(g_SoundcardType == CT_Empty)
|
||||
return;
|
||||
|
||||
if (!g_bMBAvailable) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(!g_bMBTimerIrqActive)
|
||||
MB_Update();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user