From 7e06a10f73d5955de7bba35da09e5941cee56dc8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 18 Sep 2011 16:16:55 -0700 Subject: Return int and float config values through a parameter This allows the getter functions to return whether or not the option exists without a separate call and check. --- OpenAL32/Include/alMain.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 67974cb3..ba7fb54e 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -669,9 +669,10 @@ void ReadALConfig(void); void FreeALConfig(void); int ConfigValueExists(const char *blockName, const char *keyName); const char *GetConfigValue(const char *blockName, const char *keyName, const char *def); -int GetConfigValueInt(const char *blockName, const char *keyName, int def); -float GetConfigValueFloat(const char *blockName, const char *keyName, float def); int GetConfigValueBool(const char *blockName, const char *keyName, int def); +int ConfigValueInt(const char *blockName, const char *keyName, int *ret); +int ConfigValueUInt(const char *blockName, const char *keyName, unsigned int *ret); +int ConfigValueFloat(const char *blockName, const char *keyName, float *ret); void SetRTPriority(void); -- cgit v1.2.3