mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
cellGame: implement disc change callbacks
This commit is contained in:
parent
bc3a899acf
commit
87762a9b17
19 changed files with 728 additions and 86 deletions
|
@ -246,6 +246,8 @@ void gui_application::InitializeConnects()
|
|||
connect(this, &gui_application::OnEmulatorPause, m_main_window, &main_window::OnEmuPause);
|
||||
connect(this, &gui_application::OnEmulatorResume, m_main_window, &main_window::OnEmuResume);
|
||||
connect(this, &gui_application::OnEmulatorReady, m_main_window, &main_window::OnEmuReady);
|
||||
connect(this, &gui_application::OnEnableDiscEject, m_main_window, &main_window::OnEnableDiscEject);
|
||||
connect(this, &gui_application::OnEnableDiscInsert, m_main_window, &main_window::OnEnableDiscInsert);
|
||||
}
|
||||
|
||||
#ifdef WITH_DISCORD_RPC
|
||||
|
@ -414,6 +416,21 @@ void gui_application::InitializeCallbacks()
|
|||
callbacks.on_stop = [this]() { OnEmulatorStop(); };
|
||||
callbacks.on_ready = [this]() { OnEmulatorReady(); };
|
||||
|
||||
callbacks.enable_disc_eject = [this](bool enabled)
|
||||
{
|
||||
Emu.CallFromMainThread([this, enabled]()
|
||||
{
|
||||
OnEnableDiscEject(enabled);
|
||||
});
|
||||
};
|
||||
callbacks.enable_disc_insert = [this](bool enabled)
|
||||
{
|
||||
Emu.CallFromMainThread([this, enabled]()
|
||||
{
|
||||
OnEnableDiscInsert(enabled);
|
||||
});
|
||||
};
|
||||
|
||||
callbacks.on_missing_fw = [this]()
|
||||
{
|
||||
if (!m_main_window) return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue