Disable MIDI loading
This commit is contained in:
parent
2d2edadfac
commit
9249f04d39
|
@ -233,6 +233,7 @@ struct ALStreamOpenHandler : FileSystem::OpenHandler
|
|||
return true;
|
||||
}
|
||||
|
||||
#ifndef __EMSCRIPTEN__
|
||||
if (!strcmp(sig, "MThd"))
|
||||
{
|
||||
shState->midiState().initIfNeeded(shState->config());
|
||||
|
@ -244,7 +245,6 @@ struct ALStreamOpenHandler : FileSystem::OpenHandler
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef __EMSCRIPTEN__
|
||||
source = createSDLSource(*srcOps, ext, STREAM_BUF_SIZE, looped);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -26,10 +26,6 @@ static void *so;
|
|||
|
||||
void initFluidFunctions()
|
||||
{
|
||||
#ifdef __EMSCRIPTEN__
|
||||
goto fail;
|
||||
#endif
|
||||
|
||||
#ifdef SHARED_FLUID
|
||||
|
||||
#define FLUID_FUN(name, type) \
|
||||
|
|
|
@ -152,10 +152,12 @@ struct SharedStatePrivate
|
|||
TEXFBO::allocEmpty(gpTexFBO, globalTexW, globalTexH);
|
||||
TEXFBO::linkFBO(gpTexFBO);
|
||||
|
||||
#ifndef __EMSCRIPTEN__
|
||||
/* RGSS3 games will call setup_midi, so there's
|
||||
* no need to do it on startup */
|
||||
if (rgssVer <= 2)
|
||||
midiState.initIfNeeded(threadData->config);
|
||||
#endif
|
||||
}
|
||||
|
||||
~SharedStatePrivate()
|
||||
|
|
Loading…
Reference in New Issue