forked from rosebudai/OpenRCT2-Web
Change plugin type to just local and remote
This commit is contained in:
1 parent
08cdb831af
commit
2890faee0a
4 files changed
+10
-22
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user