forked from rosebudai/OpenRCT2-Web
Improve plugin API and type definitions
This commit is contained in:
1 parent
4d8faee062
commit
c2eb6d4153
4 files changed
+231
-57
No files matched your search
@@ -718,8 +718,15 @@ DukValue ScriptEngine::ExecutePluginCall(
|
||||
|
||||
void ScriptEngine::LogPluginInfo(const std::shared_ptr<Plugin>& plugin, std::string_view message)
|
||||
{
|
||||
const auto& pluginName = plugin->GetMetadata().Name;
|
||||
_console.WriteLine("[" + pluginName + "] " + std::string(message));
|
||||
if (plugin == nullptr)
|
||||
{
|
||||
_console.WriteLine(std::string(message));
|
||||
}
|
||||
else
|
||||
{
|
||||
const auto& pluginName = plugin->GetMetadata().Name;
|
||||
_console.WriteLine("[" + pluginName + "] " + std::string(message));
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptEngine::AddNetworkPlugin(std::string_view code)
|
||||
|
||||
Reference in new issue
Block a user