Ildaeil: Ignore missing carla and set jsfx path on wasm builds

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-07-06 16:55:06 +01:00
parent 793d407db4
commit 28b6bbc4dd
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -122,6 +122,8 @@ static const char* getPathForJSFX()
{
#if defined(CARLA_OS_MAC)
path = homeDir() + "/Library/Application Support/REAPER/Effects";
#elif defined(CARLA_OS_WASM)
path = "/jsfx";
#elif defined(CARLA_OS_WIN)
path = getSpecialPath(kSpecialPathAppData) + "\\REAPER\\Effects";
if (! system::exists(path))
@ -254,6 +256,9 @@ struct IldaeilModule : Module {
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_BINARIES, 0, "/Applications/Carla.app/Contents/MacOS");
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_RESOURCES, 0, "/Applications/Carla.app/Contents/MacOS/resources");
}
#elif defined(CARLA_OS_WASM)
if (true)
{}
#elif defined(CARLA_OS_WIN)
const std::string winBinaryDir = system::join(asset::systemDir, "Carla");