Fix temp var references not being resolved on macro copy and import

This commit is contained in:
WarmUpTill
2024-02-17 11:22:20 +01:00
committed by WarmUpTill
parent 6cbfc48736
commit aa1b10425f
6 changed files with 18 additions and 3 deletions

View File

@@ -179,6 +179,14 @@ void SwitcherData::AddIntervalResetStep(std::function<void()> function,
resetIntervalSteps.emplace_back(function);
}
void SwitcherData::RunPostLoadSteps()
{
for (const auto &func : postLoadSteps) {
func();
}
postLoadSteps.clear();
}
void SwitcherData::AddPluginInitStep(std::function<void()> function)
{
std::lock_guard<std::mutex> lock(switcher->m);