Disable dev mode, use source dir as system dir; Fix some builds
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
beb0965051
commit
a482ee7b73
5 changed files with 64 additions and 33 deletions
|
@ -58,13 +58,18 @@ struct Initializer {
|
|||
{
|
||||
using namespace rack;
|
||||
|
||||
settings::devMode = true;
|
||||
settings::autoCheckUpdates = false;
|
||||
settings::autosaveInterval = 0;
|
||||
settings::discordUpdateActivity = false;
|
||||
settings::isPlugin = true;
|
||||
system::init();
|
||||
asset::init();
|
||||
logger::init();
|
||||
random::init();
|
||||
|
||||
// Make system dir point to source code location. It is good enough for now
|
||||
asset::systemDir = CARDINAL_PLUGIN_SOURCE_DIR DISTRHO_OS_SEP_STR "Rack";
|
||||
|
||||
// Log environment
|
||||
INFO("%s %s v%s", APP_NAME.c_str(), APP_EDITION.c_str(), APP_VERSION.c_str());
|
||||
INFO("%s", system::getOperatingSystemInfo().c_str());
|
||||
|
@ -107,20 +112,20 @@ struct Initializer {
|
|||
keyboard::init();
|
||||
plugin::init();
|
||||
library::init();
|
||||
ui::init();
|
||||
ui::init();
|
||||
}
|
||||
|
||||
~Initializer()
|
||||
{
|
||||
using namespace rack;
|
||||
|
||||
ui::destroy();
|
||||
ui::destroy();
|
||||
library::destroy();
|
||||
midi::destroy();
|
||||
audio::destroy();
|
||||
plugin::destroy();
|
||||
INFO("Destroying logger");
|
||||
logger::destroy();
|
||||
INFO("Destroying logger");
|
||||
logger::destroy();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -144,7 +149,7 @@ class CardinalPlugin : public Plugin
|
|||
|
||||
~ScopedContext()
|
||||
{
|
||||
rack::contextSet(nullptr);
|
||||
rack::contextSet(nullptr);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -161,6 +166,7 @@ public:
|
|||
fContext->scene = new rack::app::Scene;
|
||||
fContext->event->rootWidget = fContext->scene;
|
||||
fContext->patch = new rack::patch::Manager;
|
||||
fContext->patch->autosavePath = "/OBVIOUSLY-NOT-VALID-PATH/";
|
||||
fContext->engine->startFallbackThread();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue