mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Initialise script engine off main thread (#22230)
* Initialise script engine off main thread * Do not run ScriptEngine.Tick() during initialisation/preloading * Add 'Loading plugin engine…' string * Add changelog entry --------- Co-authored-by: Bas <Basssiiie@users.noreply.github.com>
This commit is contained in:
@@ -913,6 +913,11 @@ bool ScriptEngine::ShouldStartPlugin(const std::shared_ptr<Plugin>& plugin)
|
||||
|
||||
void ScriptEngine::Tick()
|
||||
{
|
||||
if (!_initialised)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
CheckAndStartPlugins();
|
||||
|
||||
Reference in New Issue
Block a user