mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Savestates: Rename DeferDeserialization, add some asserts
This commit is contained in:
parent
f5d39ef7f2
commit
ce5f7bd4ff
9 changed files with 35 additions and 16 deletions
|
|
@ -145,11 +145,11 @@ class Emulator final
|
|||
|
||||
std::vector<std::shared_ptr<atomic_t<u32>>> m_pause_msgs_refs;
|
||||
|
||||
std::vector<std::function<void()>> deferred_deserialization;
|
||||
std::vector<std::function<void()>> m_postponed_init_code;
|
||||
|
||||
void ExecDeserializationRemnants()
|
||||
void ExecPostponedInitCode()
|
||||
{
|
||||
for (auto&& func : ::as_rvalue(std::move(deferred_deserialization)))
|
||||
for (auto&& func : ::as_rvalue(std::move(m_postponed_init_code)))
|
||||
{
|
||||
func();
|
||||
}
|
||||
|
|
@ -200,9 +200,9 @@ public:
|
|||
CallFromMainThread(std::move(func), nullptr, true, static_cast<u64>(counter));
|
||||
}
|
||||
|
||||
void DeferDeserialization(std::function<void()>&& func)
|
||||
void PostponeInitCode(std::function<void()>&& func)
|
||||
{
|
||||
deferred_deserialization.emplace_back(std::move(func));
|
||||
m_postponed_init_code.emplace_back(std::move(func));
|
||||
}
|
||||
|
||||
/** Set emulator mode to running unconditionnaly.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue