keep initial wasm patch as factory template

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-09-10 13:47:05 +02:00
parent 40db8874ad
commit 6b59449e5e
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -316,15 +316,6 @@ public:
context->scene->rackScroll->reset(); context->scene->rackScroll->reset();
} }
#ifdef DISTRHO_OS_WASM
// switch factory template to regular one after first load
#if CARDINAL_VARIANT_MINI
context->patch->factoryTemplatePath = rack::system::join(rack::asset::patchesPath(), "templates/mini.vcv");
#else
context->patch->factoryTemplatePath = rack::system::join(rack::asset::patchesPath(), "templates/main.vcv");
#endif
#endif
#ifdef CARDINAL_INIT_OSC_THREAD #ifdef CARDINAL_INIT_OSC_THREAD
fInitializer->remotePluginInstance = this; fInitializer->remotePluginInstance = this;
#endif #endif