Add AddPostLoadStep()

Enables registering additional functions, which are to be executed after
the loading steps are complete
This commit is contained in:
WarmUpTill
2023-10-22 20:43:10 +02:00
committed by WarmUpTill
parent d4c7b0e455
commit c3f4caa6f3
3 changed files with 14 additions and 0 deletions

View File

@@ -186,4 +186,9 @@ void SwitcherData::AddLoadStep(std::function<void(obs_data_t *)> function)
loadSteps.emplace_back(function);
}
void SwitcherData::AddPostLoadStep(std::function<void()> function)
{
postLoadSteps.emplace_back(function);
}
} // namespace advss