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