mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 23:33:04 +01:00
Change plugin type to just local and remote
This commit is contained in:
@@ -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