Add USB passthrough setting and USBUtils

This adds a USB passthrough setting to ConfigManager and everything
needed for the UI to show and manage the whitelist properly.
This commit is contained in:
Léo Lam
2016-11-11 01:33:52 +01:00
parent e4d20647d4
commit 69a13a12e2
7 changed files with 161 additions and 1 deletions

View File

@ -17,6 +17,7 @@
#include "InputCommon/GCAdapter.h"
#include "UICommon/UICommon.h"
#include "UICommon/USBUtils.h"
#include "VideoCommon/VideoBackendBase.h"
@ -29,6 +30,7 @@ void Init()
VideoBackendBase::PopulateList();
WiimoteReal::LoadSettings();
GCAdapter::Init();
USBUtils::Init();
VideoBackendBase::ActivateBackend(SConfig::GetInstance().m_strVideoBackend);
SetEnableAlert(SConfig::GetInstance().bUsePanicHandlers);
@ -40,6 +42,7 @@ void Shutdown()
WiimoteReal::Shutdown();
VideoBackendBase::ClearList();
SConfig::Shutdown();
USBUtils::Shutdown();
LogManager::Shutdown();
}