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
@@ -158,12 +158,10 @@ PluginMetadata Plugin::GetMetadata(const DukValue& dukMetadata)
|
||||
|
||||
PluginType Plugin::ParsePluginType(const std::string_view& type)
|
||||
{
|
||||
if (type == "server")
|
||||
return PluginType::Server;
|
||||
if (type == "client")
|
||||
return PluginType::Client;
|
||||
if (type == "server_client")
|
||||
return PluginType::ServerClient;
|
||||
if (type == "local")
|
||||
return PluginType::Local;
|
||||
if (type == "remote")
|
||||
return PluginType::Remote;
|
||||
throw std::invalid_argument("Unknown plugin type.");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user