Tweak state flags
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
1ddcdee363
commit
d67974284d
2 changed files with 8 additions and 10 deletions
|
|
@ -779,12 +779,9 @@ protected:
|
|||
{
|
||||
case kCardinalStatePatch:
|
||||
#if CARDINAL_VARIANT_MINI
|
||||
state.hints = kStateIsHostWritable;
|
||||
state.hints = kStateIsHostReadable;
|
||||
#else
|
||||
state.hints = kStateIsBase64Blob;
|
||||
#endif
|
||||
#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||
state.hints |= kStateIsOnlyForDSP;
|
||||
state.hints = kStateIsOnlyForDSP | kStateIsBase64Blob;
|
||||
#endif
|
||||
if (FILE* const f = std::fopen(context->patch->factoryTemplatePath.c_str(), "r"))
|
||||
{
|
||||
|
|
@ -823,9 +820,10 @@ protected:
|
|||
break;
|
||||
#if CARDINAL_VARIANT_MINI || !defined(HEADLESS)
|
||||
case kCardinalStateModuleInfos:
|
||||
state.hints = 0x0;
|
||||
#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||
state.hints |= kStateIsOnlyForDSP;
|
||||
#if CARDINAL_VARIANT_MINI
|
||||
state.hints = kStateIsHostReadable;
|
||||
#else
|
||||
state.hints = kStateIsOnlyForDSP;
|
||||
#endif
|
||||
state.defaultValue = "{}";
|
||||
state.key = "moduleInfos";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue