Send the factory from the Wine host to the plugin

This commit is contained in:
Robbert van der Helm
2020-12-06 14:41:50 +01:00
parent 79c6f02d91
commit c2503f8aaa
5 changed files with 28 additions and 16 deletions
+4
View File
@@ -73,6 +73,10 @@ SMTG_EXPORT_SYMBOL Steinberg::IPluginFactory* PLUGIN_API GetPluginFactory() {
// The host should have called `InitModule()` first
assert(bridge);
// TODO: I think there is a flag that indicates that the class configuration
// may change, but I don't remember if it's at runtime or every time
// the module is loaded. If it's the former then this will take some
// special handling.
return bridge->plugin_factory.get();
// TODO: In the normal implementation of this function they manually call