mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06: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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user