/// <summary> /// Called by the host to query the plugin that supports persistence if the chunk can be read. /// </summary> /// <param name="chunkInfo">Must not be null.</param> /// <returns>Returns <see cref="VstCanDoResult.Yes"/> if the plugin can read the data.</returns> /// <remarks>The implementation calls the <see cref="IVstPluginPersistence"/> interface. /// Override to change this behavior.</remarks> public virtual VstCanDoResult BeginLoadProgram(VstPatchChunkInfo chunkInfo) { IVstPluginPersistence pluginPersistence = pluginCtx.Plugin.GetInstance<IVstPluginPersistence>(); if (pluginPersistence != null) return pluginPersistence.CanLoadChunk(chunkInfo) ? VstCanDoResult.Yes : VstCanDoResult.No; return VstCanDoResult.No; }
/// <inheritdoc /> public virtual bool CanLoadChunk(VstPatchChunkInfo chunkInfo) { return true; }