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:
Nekotekina 2018-06-02 00:46:13 +03:00
parent 1e107487da
commit 7242387a42
3 changed files with 0 additions and 11 deletions

View File

@ -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);
}

View File

@ -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;

View File

@ -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)