mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 19:19:03 +00:00
Merge pull request #5418 from MerryMage/config-again-and-again
VideoConfig: Port to layered configuration system
This commit is contained in:
commit
c8166951a0
32 changed files with 961 additions and 591 deletions
|
@ -7,10 +7,12 @@
|
|||
#endif
|
||||
|
||||
#include "Common/CommonPaths.h"
|
||||
#include "Common/Config/Config.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Common/Logging/LogManager.h"
|
||||
#include "Common/MsgHandler.h"
|
||||
|
||||
#include "Core/ConfigLoaders/BaseConfigLoader.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/HW/Wiimote.h"
|
||||
|
||||
|
@ -26,6 +28,8 @@ namespace UICommon
|
|||
void Init()
|
||||
{
|
||||
LogManager::Init();
|
||||
Config::Init();
|
||||
Config::AddLoadLayer(ConfigLoaders::GenerateBaseConfigLoader());
|
||||
SConfig::Init();
|
||||
VideoBackendBase::PopulateList();
|
||||
WiimoteReal::LoadSettings();
|
||||
|
@ -41,6 +45,7 @@ void Shutdown()
|
|||
WiimoteReal::Shutdown();
|
||||
VideoBackendBase::ClearList();
|
||||
SConfig::Shutdown();
|
||||
Config::Shutdown();
|
||||
LogManager::Shutdown();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue