22 #ifndef NUVIE_CONF_CONFIGURATION_H 23 #define NUVIE_CONF_CONFIGURATION_H 25 #include "common/str.h" 26 #include "ultima/shared/std/containers.h" 27 #include "ultima/detection.h" 38 #define NUVIE_CONF_READONLY true 39 #define NUVIE_CONF_READWRITE false 66 Common::HashMap<Common::String, Common::String, Common::IgnoreCase_Hash,
68 Common::String _configFilename;
72 void setCommonDefaults(GameId gameType);
75 void setUnenhancedDefaults(GameId gameType);
78 void setEnhancedDefaults(GameId gameType);
84 bool readConfigFile(
const Common::String &fname,
const Common::String &root,
bool readonly =
true);
87 void load(GameId gameId,
bool isEnhanced);
96 void value(
const Common::String &key, Common::String &ret,
const char *defaultvalue =
"")
const;
97 void value(
const Common::String &key,
int &ret,
int defaultvalue = 0)
const;
98 void value(
const Common::String &key,
bool &ret,
bool defaultvalue =
false)
const;
100 void pathFromValue(
const Common::String &key,
const Common::String &file,
Common::Path &full_path)
const;
103 bool set(
const Common::String &key,
const Common::String &value);
104 bool set(
const Common::String &key,
const char *value);
105 bool set(
const Common::String &key,
int value);
106 bool set(
const Common::String &key,
bool value);
109 ConfigNode *getNode(
const Common::String &key);
114 void getSubkeys(KeyTypeList &ktl,
const Common::String &basekey);
Definition: configuration.h:61
Definition: config_node.h:31
Definition: detection.h:27
Definition: hash-str.h:49
Definition: hash-str.h:45