Merge pull request #938 from gullradriel/pmemsettings-create-folder

Added SETTINGS folder creating for PMem files
This commit is contained in:
gullradriel 2023-04-30 18:42:51 +02:00 committed by GitHub
commit 06643df6a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -410,6 +410,10 @@ namespace ui {
bool load_mem_at_startup = false ;
File pmem_flag_file_handle ;
std::string folder = "SETTINGS";
make_new_directory(folder);
std::string pmem_flag_file = "/SETTINGS/PMEM_FILEFLAG" ;
auto result = pmem_flag_file_handle.open(pmem_flag_file);
if(!result.is_valid())