mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-14 16:07:39 +00:00
SCI: Check OPL init return code
This commit is contained in:
parent
beed23c441
commit
82f585871b
@ -236,7 +236,8 @@ int MidiDriver_AdLib::openAdLib(bool isSCI0) {
|
||||
if (!_opl)
|
||||
return -1;
|
||||
|
||||
_opl->init();
|
||||
if (!_opl->init())
|
||||
return -1;
|
||||
|
||||
setRegister(0xBD, 0);
|
||||
setRegister(0x08, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user