diff options
Diffstat (limited to 'Alc/alcConfig.c')
-rw-r--r-- | Alc/alcConfig.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c index eee64845..dbdf9639 100644 --- a/Alc/alcConfig.c +++ b/Alc/alcConfig.c @@ -294,6 +294,12 @@ const char *GetConfigValue(const char *blockName, const char *keyName, const cha return def; } +int ConfigValueExists(const char *blockName, const char *keyName) +{ + const char *val = GetConfigValue(blockName, keyName, ""); + return !!val[0]; +} + int GetConfigValueInt(const char *blockName, const char *keyName, int def) { const char *val = GetConfigValue(blockName, keyName, ""); |