mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-17 03:04:03 +01:00
RMG-Core: minor fixes in Plugins.cpp
This commit is contained in:
1 parent
972e88b74f
commit
a4111f2efa
1 file changed
+6
-1
@@ -161,6 +161,7 @@ bool apply_plugin_settings(std::string pluginSettings[4])
|
||||
error += ")->Hook() Failed: ";
|
||||
error += plugin->GetLastError();
|
||||
CoreSetError(error);
|
||||
plugin->Unhook();
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -173,7 +174,6 @@ bool apply_plugin_settings(std::string pluginSettings[4])
|
||||
error += get_plugin_type_name(pluginType);
|
||||
error += "!";
|
||||
CoreSetError(error);
|
||||
plugin->Shutdown();
|
||||
plugin->Unhook();
|
||||
return false;
|
||||
}
|
||||
@@ -189,6 +189,11 @@ bool apply_plugin_settings(std::string pluginSettings[4])
|
||||
CoreSetError(error);
|
||||
plugin->Shutdown();
|
||||
plugin->Unhook();
|
||||
// force a re-load next time,
|
||||
// because this plugin isn't
|
||||
// the one we've stored in
|
||||
// l_PluginFiles[i]
|
||||
l_PluginFiles[i].clear();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user