mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
Update rpcs3/rpcs3qt/gui_application.cpp
Co-authored-by: Megamouse <studienricky89@googlemail.com>
This commit is contained in:
parent
ad616a5cdd
commit
c748d3cc81
1 changed files with 4 additions and 0 deletions
|
@ -213,6 +213,10 @@ bool gui_application::Init()
|
|||
notification_filter.dbcc_classguid = GUID_DEVINTERFACE_USB_DEVICE;
|
||||
|
||||
m_device_notification_handle = RegisterDeviceNotification(reinterpret_cast<HWND>(m_main_window->winId()), ¬ification_filter, DEVICE_NOTIFY_WINDOW_HANDLE);
|
||||
if (!m_device_notification_handle )
|
||||
{
|
||||
gui_log.error("RegisterDeviceNotification() failed: %s", fmt::win_error{GetLastError(), nullptr});
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue