mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-23 04:17:30 +02:00
Serialize the context menu ID
This commit is contained in:
@@ -20,8 +20,11 @@ Vst3ContextMenuProxy::ConstructArgs::ConstructArgs() {}
|
|||||||
|
|
||||||
Vst3ContextMenuProxy::ConstructArgs::ConstructArgs(
|
Vst3ContextMenuProxy::ConstructArgs::ConstructArgs(
|
||||||
Steinberg::IPtr<Steinberg::FUnknown> object,
|
Steinberg::IPtr<Steinberg::FUnknown> object,
|
||||||
size_t owner_instance_id)
|
size_t owner_instance_id,
|
||||||
: owner_instance_id(owner_instance_id), context_menu_args(object) {}
|
size_t context_menu_id)
|
||||||
|
: owner_instance_id(owner_instance_id),
|
||||||
|
context_menu_id(context_menu_id),
|
||||||
|
context_menu_args(object) {}
|
||||||
|
|
||||||
Vst3ContextMenuProxy::Vst3ContextMenuProxy(const ConstructArgs&& args)
|
Vst3ContextMenuProxy::Vst3ContextMenuProxy(const ConstructArgs&& args)
|
||||||
: YaContextMenu(std::move(args.context_menu_args)),
|
: YaContextMenu(std::move(args.context_menu_args)),
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ class Vst3ContextMenuProxy : public YaContextMenu {
|
|||||||
* we'll support any interfaces this object also supports.
|
* we'll support any interfaces this object also supports.
|
||||||
*/
|
*/
|
||||||
ConstructArgs(Steinberg::IPtr<FUnknown> object,
|
ConstructArgs(Steinberg::IPtr<FUnknown> object,
|
||||||
size_t owner_instance_id);
|
size_t owner_instance_id,
|
||||||
|
size_t context_menu_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The unique instance identifier of the proxy object instance this
|
* The unique instance identifier of the proxy object instance this
|
||||||
@@ -69,6 +70,7 @@ class Vst3ContextMenuProxy : public YaContextMenu {
|
|||||||
template <typename S>
|
template <typename S>
|
||||||
void serialize(S& s) {
|
void serialize(S& s) {
|
||||||
s.value8b(owner_instance_id);
|
s.value8b(owner_instance_id);
|
||||||
|
s.value8b(context_menu_id);
|
||||||
s.object(context_menu_args);
|
s.object(context_menu_args);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user