@@ -64,23 +64,23 @@ CPlugin::CPlugin(HINSTANCE hDLL, const CPlugin::InitInfo& initInfo)
64
64
65
65
auto newPlugin
66
66
= reinterpret_cast <CompatV1::NewPluginFn*>(GetProcAddress (hDLL, " NWNXCPlugin_New" ));
67
- m_dll.newPlugin = [newPlugin](InitInfo info) {
67
+ m_dll.newPlugin = [newPlugin](const InitInfo* info) {
68
68
auto hooks = CompatV1::NWN2Hooks {
69
69
.ExecuteScript = CompatV1::ExecuteScript,
70
70
.ExecuteScriptEnhanced = CompatV1::ExecuteScriptEnhanced,
71
- .AddScriptParameterInt = info. nwn2_hooks ->AddScriptParameterInt ,
72
- .AddScriptParameterString = info. nwn2_hooks ->AddScriptParameterString ,
73
- .AddScriptParameterFloat = info. nwn2_hooks ->AddScriptParameterFloat ,
74
- .AddScriptParameterObject = info. nwn2_hooks ->AddScriptParameterObject ,
75
- .ClearScriptParams = info. nwn2_hooks ->ClearScriptParams ,
71
+ .AddScriptParameterInt = info-> nwn2_hooks ->AddScriptParameterInt ,
72
+ .AddScriptParameterString = info-> nwn2_hooks ->AddScriptParameterString ,
73
+ .AddScriptParameterFloat = info-> nwn2_hooks ->AddScriptParameterFloat ,
74
+ .AddScriptParameterObject = info-> nwn2_hooks ->AddScriptParameterObject ,
75
+ .ClearScriptParams = info-> nwn2_hooks ->ClearScriptParams ,
76
76
};
77
77
auto initInfo = CompatV1::InitInfo {
78
- .dll_path = info. dll_path ,
79
- .nwnx_user_path = info. nwnx_user_path ,
80
- .nwn2_install_path = info. nwn2_install_path ,
81
- .nwn2_home_path = info. nwn2_home_path ,
82
- .nwn2_module_path = info. nwn2_module_path ,
83
- .nwnx_install_path = info. nwnx_install_path ,
78
+ .dll_path = info-> dll_path ,
79
+ .nwnx_user_path = info-> nwnx_user_path ,
80
+ .nwn2_install_path = info-> nwn2_install_path ,
81
+ .nwn2_home_path = info-> nwn2_home_path ,
82
+ .nwn2_module_path = info-> nwn2_module_path ,
83
+ .nwnx_install_path = info-> nwnx_install_path ,
84
84
.nwn2_hooks = &hooks,
85
85
};
86
86
return newPlugin (initInfo);
@@ -161,7 +161,7 @@ CPlugin::CPlugin(HINSTANCE hDLL, const CPlugin::InitInfo& initInfo)
161
161
}
162
162
163
163
// Initialize instance
164
- m_instancePtr = m_dll.newPlugin (initInfo);
164
+ m_instancePtr = m_dll.newPlugin (& initInfo);
165
165
if (m_instancePtr == nullptr ) {
166
166
logger->Err (" NWNXCPlugin_New returned null" );
167
167
return ;
0 commit comments