Savestates: Rename DeferDeserialization, add some asserts

This commit is contained in:
Eladash 2023-12-31 21:10:51 +02:00 committed by Elad Ashkenazi
parent f5d39ef7f2
commit ce5f7bd4ff
9 changed files with 35 additions and 16 deletions

View file

@ -242,7 +242,7 @@ namespace stx
*m_info++ = nullptr;
}
void init(bool reset = true, utils::serial* ar = nullptr)
void init(bool reset = true, utils::serial* ar = nullptr, std::function<void()> func = {})
{
if (reset)
{
@ -297,6 +297,11 @@ namespace stx
}
}
if (func)
{
func();
}
// Launch threads
for (auto it = m_info; it != info_before; it--)
{