Add more config settings

This commit is contained in:
2025-03-25 14:38:06 +08:00
parent 72163929a7
commit a766ed930c
4 changed files with 32 additions and 7 deletions

View File

@@ -42,6 +42,16 @@ bool Config::Load(std::string path) {
}
std::string key = l.substr(0, eq_pos);
std::string value = l.substr(eq_pos + 1);
#if HAVE_MPV
if (key.find("mpv-") == 0) {
key = key.substr(4);
if (str_util::tolower(key) == "wid") {
continue;
}
mpv.push_back(std::make_pair(key, value));
continue;
}
#endif
configs[key] = value;
}
free_file_reader(reader);
@@ -49,6 +59,8 @@ bool Config::Load(std::string path) {
return true;
}
#if HAVE_PLAYER
bool Config::IsAppendLogging() {
auto re = configs.find("appendLogging");
if (re == configs.end()) {
@@ -99,3 +111,5 @@ uint32_t Config::VideoBuffer() {
}
return std::stoul((*re).second);
}
#endif