don't crash if sound has been disabled or the backend driver failed to initialize.

svn-id: r39137
This commit is contained in:
Andre Heider 2009-03-05 21:50:01 +00:00
parent e75178f383
commit 7ef3a59a2c

View File

@ -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. */