mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Log messages with new LogPluginInfo function
This commit is contained in:
@@ -915,6 +915,12 @@ DukValue ScriptEngine::ExecutePluginCall(
|
||||
return DukValue();
|
||||
}
|
||||
|
||||
void ScriptEngine::LogPluginInfo(std::string_view message)
|
||||
{
|
||||
auto plugin = _execInfo.GetCurrentPlugin();
|
||||
LogPluginInfo(plugin, message);
|
||||
}
|
||||
|
||||
void ScriptEngine::LogPluginInfo(const std::shared_ptr<Plugin>& plugin, std::string_view message)
|
||||
{
|
||||
if (plugin == nullptr)
|
||||
|
||||
Reference in New Issue
Block a user