mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
GCAdapter: Defer initialization until MainWindow::InitControllers
If libusb fails to initialize, an assertion fails, but if that happens before the main window is created, then Dolphin just dies. Now, the panic alert is properly shown and the user can ignore it.
This commit is contained in:
parent
58c02e6b85
commit
37806472e1
5 changed files with 15 additions and 7 deletions
|
@ -113,6 +113,7 @@
|
|||
#include "DolphinQt/WiiUpdate.h"
|
||||
|
||||
#include "InputCommon/ControllerInterface/ControllerInterface.h"
|
||||
#include "InputCommon/GCAdapter.h"
|
||||
|
||||
#include "UICommon/DiscordPresence.h"
|
||||
#include "UICommon/GameFile.h"
|
||||
|
@ -328,6 +329,7 @@ void MainWindow::InitControllers()
|
|||
"No default device has been added in time. EmulatedController(s) defaulting adds"
|
||||
" input mappings made for a specific default device depending on the platform");
|
||||
}
|
||||
GCAdapter::Init();
|
||||
Pad::Initialize();
|
||||
Pad::InitializeGBA();
|
||||
Keyboard::Initialize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue