1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Do not load plugins on title screen

This commit is contained in:
Ted John
2020-02-06 23:15:20 +00:00
parent 2e62078c30
commit e6915e8799
8 changed files with 205 additions and 24 deletions

View File

@@ -78,6 +78,15 @@ void HookEngine::UnsubscribeAll(std::shared_ptr<const Plugin> owner)
}
}
void HookEngine::UnsubscribeAll()
{
for (auto& hookList : _hookMap)
{
auto& hooks = hookList.Hooks;
hooks.clear();
}
}
void HookEngine::Call(HOOK_TYPE type)
{
auto& hookList = GetHookList(type);