GBA Config: Add GBAConfigGetValue

This commit is contained in:
Jeffrey Pfau 2014-11-05 02:16:35 -08:00
parent 37212c1f23
commit 19346dff87
2 changed files with 6 additions and 0 deletions

View File

@ -100,6 +100,10 @@ bool GBAConfigSave(const struct GBAConfig* config) {
return ConfigurationWrite(&config->configTable, BINARY_NAME ".ini");
}
const char* GBAConfigGetValue(const struct GBAConfig* config, const char* key) {
return _lookupValue(config, key);
}
void GBAConfigSetValue(struct GBAConfig* config, const char* key, const char* value) {
ConfigurationSetValue(&config->configTable, config->port, key, value);
}

View File

@ -34,6 +34,8 @@ void GBAConfigDeinit(struct GBAConfig*);
bool GBAConfigLoad(struct GBAConfig*);
bool GBAConfigSave(const struct GBAConfig*);
const char* GBAConfigGetValue(const struct GBAConfig*, const char* key);
void GBAConfigSetValue(struct GBAConfig*, const char* key, const char* value);
void GBAConfigSetIntValue(struct GBAConfig*, const char* key, int value);
void GBAConfigSetUIntValue(struct GBAConfig*, const char* key, unsigned value);