refactor(main): move file operation functions to new source (#2124)

This commit is contained in:
ReenigneArcher
2024-02-10 07:37:27 -05:00
committed by GitHub
parent 1c50bc502b
commit cd2153f340
11 changed files with 113 additions and 78 deletions

View File

@@ -15,6 +15,7 @@
#include <boost/property_tree/ptree.hpp>
#include "config.h"
#include "file_handler.h"
#include "logging.h"
#include "main.h"
#include "nvhttp.h"
@@ -1215,7 +1216,7 @@ namespace config {
}
// Read config file
auto vars = parse_config(read_file(sunshine.config_file.c_str()));
auto vars = parse_config(file_handler::read_file(sunshine.config_file.c_str()));
for (auto &[name, value] : cmd_vars) {
vars.insert_or_assign(std::move(name), std::move(value));