Tweak mini variant build to allow standalone
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
5376573d09
commit
ca5bfd6270
25 changed files with 171 additions and 168 deletions
|
|
@ -135,7 +135,7 @@ struct FileButton : MenuButton {
|
|||
patchUtils::loadTemplateDialog();
|
||||
}));
|
||||
|
||||
#if ! CARDINAL_VARIANT_MINI
|
||||
#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||
#ifndef DISTRHO_OS_WASM
|
||||
menu->addChild(createMenuItem("Open / Import...", RACK_MOD_CTRL_NAME "+O", []() {
|
||||
patchUtils::loadDialog();
|
||||
|
|
@ -172,7 +172,7 @@ struct FileButton : MenuButton {
|
|||
patchUtils::revertDialog();
|
||||
}, APP->patch->path.empty()));
|
||||
|
||||
#if defined(HAVE_LIBLO) || CARDINAL_VARIANT_MINI
|
||||
#if defined(HAVE_LIBLO) || ! DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||
#ifdef __MOD_DEVICES__
|
||||
#define REMOTE_NAME "MOD"
|
||||
#else
|
||||
|
|
@ -201,7 +201,7 @@ struct FileButton : MenuButton {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if ! CARDINAL_VARIANT_MINI
|
||||
#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||
#ifndef DISTRHO_OS_WASM
|
||||
menu->addChild(new ui::MenuSeparator);
|
||||
|
||||
|
|
@ -768,7 +768,7 @@ struct MeterLabel : ui::Label {
|
|||
// uiLastTime = time;
|
||||
// }
|
||||
|
||||
#if CARDINAL_VARIANT_MINI
|
||||
#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||
text = string::f("%.1f fps", 1.0 / frameDurationAvg);
|
||||
#else
|
||||
double meterAverage = APP->engine->getMeterAverage();
|
||||
|
|
@ -807,7 +807,7 @@ struct MenuBar : widget::OpaqueWidget {
|
|||
viewButton->text = "View";
|
||||
layout->addChild(viewButton);
|
||||
|
||||
#if ! CARDINAL_VARIANT_MINI
|
||||
#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||
EngineButton* engineButton = new EngineButton;
|
||||
engineButton->text = "Engine";
|
||||
layout->addChild(engineButton);
|
||||
|
|
|
|||
|
|
@ -330,8 +330,10 @@ void Scene::onHoverKey(const HoverKeyEvent& e) {
|
|||
}
|
||||
if (e.key == GLFW_KEY_F7 && (e.mods & RACK_MOD_MASK) == 0) {
|
||||
if (remoteUtils::RemoteDetails* const remoteDetails = remoteUtils::getRemote())
|
||||
{
|
||||
remoteUtils::sendFullPatchToRemote(remoteDetails);
|
||||
window::generateScreenshot();
|
||||
window::generateScreenshot();
|
||||
}
|
||||
e.consume(this);
|
||||
}
|
||||
if (e.key == GLFW_KEY_F9 && (e.mods & RACK_MOD_MASK) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue