mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 17:49:01 +00:00
Core: SetOnStoppedCallback -> SetOnStateChangedCallback
This commit is contained in:
parent
22a9a08b24
commit
8e805dcbf4
5 changed files with 25 additions and 11 deletions
|
@ -530,8 +530,9 @@ void CFrame::InitializeCoreCallbacks()
|
|||
});
|
||||
|
||||
// Warning: this gets called from the EmuThread
|
||||
Core::SetOnStoppedCallback([this] {
|
||||
AddPendingEvent(wxCommandEvent{wxEVT_HOST_COMMAND, IDM_STOPPED});
|
||||
Core::SetOnStateChangedCallback([this](Core::State state) {
|
||||
if (state == Core::State::Uninitialized)
|
||||
AddPendingEvent(wxCommandEvent{wxEVT_HOST_COMMAND, IDM_STOPPED});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue