Change plugin type to just local and remote

This commit is contained in:
Ted John committed 2020-04-26 14:35:03 +01:00
1 parent 08cdb831af
commit 2890faee0a
4 files changed
+10 -22

No files matched your search

+2 -7
View File
@@ -271,14 +271,9 @@ bool ScriptEngine::ShouldStartPlugin(const std::shared_ptr<Plugin>& plugin)
{
// Only client plugins and plugins downloaded from server should be started
const auto& metadata = plugin->GetMetadata();
if (metadata.Type == PluginType::Server)
if (metadata.Type == PluginType::Remote && plugin->HasPath())
{
LogPluginInfo(plugin, "Server plugin not started");
return false;
}
else if (metadata.Type == PluginType::ServerClient && plugin->HasPath())
{
LogPluginInfo(plugin, "Server / client plugin not started");
LogPluginInfo(plugin, "Remote plugin not started");
return false;
}
}