Force the way binary resources are generated
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
2a0d263666
commit
28f2c26872
4 changed files with 34 additions and 8 deletions
|
|
@ -174,6 +174,7 @@ public:
|
|||
fContext->patch = new rack::patch::Manager;
|
||||
fContext->patch->autosavePath = fAutosavePath;
|
||||
fContext->patch->templatePath = CARDINAL_PLUGIN_SOURCE_DIR DISTRHO_OS_SEP_STR "template.vcv";
|
||||
fContext->patch->loadTemplate();
|
||||
fContext->engine->startFallbackThread();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -80,10 +80,11 @@ public:
|
|||
fContext->window = new rack::window::Window;
|
||||
rack::window::lastUI = nullptr;
|
||||
|
||||
if (fContext->patch->hasAutosave())
|
||||
fContext->patch->loadAutosave();
|
||||
else
|
||||
fContext->patch->loadTemplate();
|
||||
// we need to reload current patch for things to show on screen :(
|
||||
// FIXME always save
|
||||
if (! fContext->patch->hasAutosave())
|
||||
fContext->patch->saveAutosave();
|
||||
fContext->patch->loadAutosave();
|
||||
}
|
||||
|
||||
~CardinalUI() override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue