diff options
author | Chris Robinson <[email protected]> | 2019-06-30 16:15:15 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-30 16:40:08 -0700 |
commit | 3658dafdcbbd114caaf81cb27cf6ccc07045b0aa (patch) | |
tree | 01065f3aeb473a8b65aee6032e718cbe1e62eb9f /Alc/alconfig.h | |
parent | db026454f28f93fe7c38dc84a79813a59afeb1d0 (diff) |
Use an optional for ConfigValueStr
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); |