Tweak state flags

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-01-03 09:20:33 +00:00
parent 1ddcdee363
commit d67974284d
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
2 changed files with 8 additions and 10 deletions

View file

@ -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";