comparison src/core/ini.cc @ 116:254b1d2b7096

settings: add torrents page, make rss feed configurable
author Paper <mrpapersonic@gmail.com>
date Tue, 07 Nov 2023 13:52:13 -0500
parents
children
comparison
equal deleted inserted replaced
115:c72b907b9bef 116:254b1d2b7096
1 #include "core/ini.h"
2
3 namespace INI {
4
5 /* this should be in some ini.cc or whatever */
6 std::string GetIniString(const mINI::INIStructure& ini, const std::string& section,
7 const std::string& value, const std::string& def) {
8 if (!ini.has(section) || !ini.get(section).has(value))
9 return def;
10 return ini.get(section).get(value); // ack
11 }
12
13 }