/* * This is a generated file. * * This file is part of smolbote. It's copyrighted by the contributors recorded * in the version control history of the file, available from its original * location: https://neueland.iserlohn-fortress.net/cgit/smolbote.git * * SPDX-License-Identifier: GPL-3.0 */ #include "configuration.h" std::string Configuration::init_global(const std::string &p_path) { auto value_map = std::make_unique>>({ /* @__DEFAULT_CFG__ */ }); // load the actual configuration file const auto cfgpath = p_path.empty() ? value_map->value("poi/config").value() : p_path; value_map->read_file(cfgpath); move_global(std::move(value_map)); return cfgpath; }