mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 14:14:17 -04:00
Create configuration directory if it doesn't exist
This commit is contained in:
@@ -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 |
|
||||
\*-------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user