mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 10:58:01 +00:00
don't crash if sound has been disabled or the backend driver failed to initialize.
svn-id: r39137
This commit is contained in:
parent
e75178f383
commit
7ef3a59a2c
@ -282,6 +282,9 @@ static int pp_set_option(char *name, char *value) {
|
||||
}
|
||||
|
||||
static int pp_init(ResourceManager *resmgr, int expected_latency) {
|
||||
if (!g_system->getMixer()->isReady())
|
||||
return SFX_ERROR;
|
||||
|
||||
Resource *res = NULL, *res2 = NULL;
|
||||
|
||||
/* FIXME Temporary hack to detect Amiga games. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user