diff options
author | Chris Robinson <[email protected]> | 2019-06-30 12:00:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-30 16:40:08 -0700 |
commit | 51f53afe12719513b3736a1c73e7de98d7e301ca (patch) | |
tree | 00cb8385163adde88f41b21a322813e5cffec7db /Alc/alconfig.h | |
parent | 689f70ce6d6b27ea2ccf7463e79dfefe5ce35899 (diff) |
Use an optional for ConfigValueInt
Diffstat (limited to 'Alc/alconfig.h')
-rw-r--r-- | Alc/alconfig.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/alconfig.h b/Alc/alconfig.h index 290172a8..e6977101 100644 --- a/Alc/alconfig.h +++ b/Alc/alconfig.h @@ -1,6 +1,7 @@ #ifndef ALCONFIG_H #define ALCONFIG_H +#include "aloptional.h" void ReadALConfig(); @@ -9,7 +10,7 @@ const char *GetConfigValue(const char *devName, const char *blockName, const cha 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); -int ConfigValueInt(const char *devName, const char *blockName, const char *keyName, int *ret); +al::optional<int> ConfigValueInt(const char *devName, const char *blockName, const char *keyName); int ConfigValueUInt(const char *devName, const char *blockName, const char *keyName, unsigned int *ret); int ConfigValueFloat(const char *devName, const char *blockName, const char *keyName, float *ret); int ConfigValueBool(const char *devName, const char *blockName, const char *keyName, int *ret); |