Create configuration directory if it doesn't exist
This commit is contained in:
parent
f7d187f5b2
commit
8131b94a5d
1 changed files with 7 additions and 0 deletions
|
|
@ -12,6 +12,8 @@
|
|||
#include "ResourceManager.h"
|
||||
#include "ProfileManager.h"
|
||||
|
||||
#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
|
||||
#include <experimental/filesystem>
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
|
||||
|
|
@ -44,6 +46,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 |
|
||||
\*-------------------------------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue