/* * 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/gitea/aqua/smolbote * * SPDX-License-Identifier: GPL-3.0 */ #include "configuration.h" #include #mesondefine CONFIG_POI_NAME #mesondefine CONFIG_POI_ICON #mesondefine CONFIG_POI_CFG_PATH #mesondefine CONFIG_QTBUG_65223 inline void init_conf(const std::string &path) { auto value_map = std::make_unique>>({ @conf_init_list@ }); std::fstream fs; fs.open(path, std::fstream::in); if(fs.is_open()) { value_map->read(fs); fs.close(); } Configuration::move_global(std::move(value_map)); }