mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
DolphinWX: Add a progress dialog host command
Allows feedback from backends to be communicated to the user when long-running operation are performed (e.g. shader compilation).
This commit is contained in:
parent
334e117da7
commit
1fccbd5be3
9 changed files with 59 additions and 0 deletions
|
@ -488,3 +488,12 @@ void Host_YieldToUI()
|
|||
{
|
||||
wxGetApp().GetMainLoop()->YieldFor(wxEVT_CATEGORY_UI);
|
||||
}
|
||||
|
||||
void Host_UpdateProgressDialog(const char* caption, int position, int total)
|
||||
{
|
||||
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATE_PROGRESS_DIALOG);
|
||||
event.SetString(caption);
|
||||
event.SetInt(position);
|
||||
event.SetExtraLong(total);
|
||||
main_frame->GetEventHandler()->AddPendingEvent(event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue