GUI: improve system detection algorithm (maybe)

This commit is contained in:
tildearrow 2022-12-22 13:10:08 -05:00
parent c8612b7e8a
commit eab679e9d3
5 changed files with 52 additions and 8 deletions

View file

@ -35,6 +35,9 @@ class DivConfig {
String toBase64();
bool save(const char* path);
// get the map
const std::map<String,String>& configMap();
// get a config value
bool getBool(String key, bool fallback) const;
int getInt(String key, int fallback) const;
@ -42,6 +45,9 @@ class DivConfig {
double getDouble(String key, double fallback) const;
String getString(String key, String fallback) const;
// check for existence
bool has(String key);
// set a config value
void set(String key, bool value);
void set(String key, int value);