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:
@@ -471,8 +471,6 @@ bool Emulator::InstallPkg(const std::string& path)
|
|||||||
int_progress = static_cast<int>(pval);
|
int_progress = static_cast<int>(pval);
|
||||||
LOG_SUCCESS(GENERAL, "... %u%%", int_progress);
|
LOG_SUCCESS(GENERAL, "... %u%%", int_progress);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_cb.process_events();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1276,8 +1274,6 @@ void Emulator::Stop(bool restart)
|
|||||||
|
|
||||||
while (g_thread_count)
|
while (g_thread_count)
|
||||||
{
|
{
|
||||||
m_cb.process_events();
|
|
||||||
|
|
||||||
std::this_thread::sleep_for(10ms);
|
std::this_thread::sleep_for(10ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -161,7 +161,6 @@ enum CellSysutilLang : s32;
|
|||||||
struct EmuCallbacks
|
struct EmuCallbacks
|
||||||
{
|
{
|
||||||
std::function<void(std::function<void()>)> call_after;
|
std::function<void(std::function<void()>)> call_after;
|
||||||
std::function<void()> process_events;
|
|
||||||
std::function<void()> on_run;
|
std::function<void()> on_run;
|
||||||
std::function<void()> on_pause;
|
std::function<void()> on_pause;
|
||||||
std::function<void()> on_resume;
|
std::function<void()> on_resume;
|
||||||
|
|||||||
@@ -130,12 +130,6 @@ void rpcs3_app::InitializeCallbacks()
|
|||||||
RequestCallAfter(std::move(func));
|
RequestCallAfter(std::move(func));
|
||||||
};
|
};
|
||||||
|
|
||||||
callbacks.process_events = [this]()
|
|
||||||
{
|
|
||||||
RPCS3MainWin->update();
|
|
||||||
processEvents();
|
|
||||||
};
|
|
||||||
|
|
||||||
callbacks.get_kb_handler = [=]() -> std::shared_ptr<KeyboardHandlerBase>
|
callbacks.get_kb_handler = [=]() -> std::shared_ptr<KeyboardHandlerBase>
|
||||||
{
|
{
|
||||||
switch (keyboard_handler type = g_cfg.io.keyboard)
|
switch (keyboard_handler type = g_cfg.io.keyboard)
|
||||||
|
|||||||
Reference in New Issue
Block a user