diff options
Diffstat (limited to 'Alc/alconfig.h')
-rw-r--r-- | Alc/alconfig.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/alconfig.h b/Alc/alconfig.h index 275fed75..9b1c09aa 100644 --- a/Alc/alconfig.h +++ b/Alc/alconfig.h @@ -1,6 +1,8 @@ #ifndef ALCONFIG_H #define ALCONFIG_H +#include <string> + #include "aloptional.h" void ReadALConfig(); @@ -9,7 +11,7 @@ int ConfigValueExists(const char *devName, const char *blockName, const char *ke const char *GetConfigValue(const char *devName, const char *blockName, const char *keyName, const char *def); int GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, int def); -int ConfigValueStr(const char *devName, const char *blockName, const char *keyName, const char **ret); +al::optional<std::string> ConfigValueStr(const char *devName, const char *blockName, const char *keyName); al::optional<int> ConfigValueInt(const char *devName, const char *blockName, const char *keyName); al::optional<unsigned int> ConfigValueUInt(const char *devName, const char *blockName, const char *keyName); int ConfigValueFloat(const char *devName, const char *blockName, const char *keyName, float *ret); |