mirror of https://github.com/RPCS3/rpcs3.git
Block GUI after stopping emulation
This is necessary to prevent restarting the emulation until it's finished Remove "process_events" callback completely
This commit is contained in:
parent
1e107487da
commit
7242387a42
|
@ -471,8 +471,6 @@ bool Emulator::InstallPkg(const std::string& path)
|
|||
int_progress = static_cast<int>(pval);
|
||||
LOG_SUCCESS(GENERAL, "... %u%%", int_progress);
|
||||
}
|
||||
|
||||
m_cb.process_events();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1276,8 +1274,6 @@ void Emulator::Stop(bool restart)
|
|||
|
||||
while (g_thread_count)
|
||||
{
|
||||
m_cb.process_events();
|
||||
|
||||
std::this_thread::sleep_for(10ms);
|
||||
}
|
||||
|
||||
|
|
|
@ -161,7 +161,6 @@ enum CellSysutilLang : s32;
|
|||
struct EmuCallbacks
|
||||
{
|
||||
std::function<void(std::function<void()>)> call_after;
|
||||
std::function<void()> process_events;
|
||||
std::function<void()> on_run;
|
||||
std::function<void()> on_pause;
|
||||
std::function<void()> on_resume;
|
||||
|
|
|
@ -130,12 +130,6 @@ void rpcs3_app::InitializeCallbacks()
|
|||
RequestCallAfter(std::move(func));
|
||||
};
|
||||
|
||||
callbacks.process_events = [this]()
|
||||
{
|
||||
RPCS3MainWin->update();
|
||||
processEvents();
|
||||
};
|
||||
|
||||
callbacks.get_kb_handler = [=]() -> std::shared_ptr<KeyboardHandlerBase>
|
||||
{
|
||||
switch (keyboard_handler type = g_cfg.io.keyboard)
|
||||
|
|
Loading…
Reference in New Issue