|
|
|
|
@ -12,6 +12,8 @@
|
|
|
|
|
#include "ResourceManager.h"
|
|
|
|
|
#include "ProfileManager.h"
|
|
|
|
|
|
|
|
|
|
#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
|
|
|
|
|
#include <experimental/filesystem>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
@ -45,6 +47,11 @@ ResourceManager::ResourceManager()
|
|
|
|
|
server = new NetworkServer(rgb_controllers_hw);
|
|
|
|
|
|
|
|
|
|
/*-------------------------------------------------------------------------*\
|
|
|
|
|
| Create OpenRGB configuration directory if it doesn't exist |
|
|
|
|
|
\*-------------------------------------------------------------------------*/
|
|
|
|
|
std::experimental::filesystem::create_directories(GetConfigurationDirectory());
|
|
|
|
|
|
|
|
|
|
/*-------------------------------------------------------------------------*\
|
|
|
|
|
| Load sizes list from file |
|
|
|
|
|
\*-------------------------------------------------------------------------*/
|
|
|
|
|
profile_manager = new ProfileManager(rgb_controllers, GetConfigurationDirectory());
|
|
|
|
|
|