mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
Empty kill and init callback before calling them
This commit is contained in:
parent
554b27a82a
commit
a03dd44924
5 changed files with 37 additions and 25 deletions
|
|
@ -2893,8 +2893,9 @@ void Emulator::Kill(bool allow_autoexit, bool savestate)
|
|||
|
||||
if (after_kill_callback)
|
||||
{
|
||||
after_kill_callback();
|
||||
after_kill_callback = nullptr;
|
||||
// Make after_kill_callback empty before call
|
||||
const auto callback = std::move(after_kill_callback);
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue