aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcConfig.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't bother stripping whitespace from commentsChris Robinson2014-05-151-5/+1
|
* Don't use the next power of two when duplicating config valuesChris Robinson2014-05-041-1/+1
| | | | Speed isn't terribly important here, and reallocs should be extremely rare.
* Add a SZFMT macro for a size_t string formatterChris Robinson2014-04-191-2/+2
|
* Properly handle special folder names with extended charactersChris Robinson2014-03-281-9/+27
|
* Wrap fopen calls under WindowsChris Robinson2014-03-281-9/+9
| | | | | | | The idea is that all filenames we deal with are encoded as UTF-8, but the Windows functions that take a char string interpret it using the ANSI codepage. So instead, we convert the UTF-8 string to a wchar string, and then use the wchar functions for proper extended character filename support.
* Move PATH_MAX fallback definitions to alMain.hChris Robinson2014-02-271-8/+0
|
* Expand environment variables for all config option values when loadingChris Robinson2014-02-261-1/+76
|
* Avoid using a global static buffer for config loadingChris Robinson2014-02-231-3/+51
|
* Fix indentationChris Robinson2014-02-231-20/+20
|
* Fix a potential infinite loop.Chris Robinson2013-06-191-8/+9
| | | | | If the first XDG_CONFIG_DIRS entry isn't a proper relative path, it would never break the loop.
* Look for alsoft.conf in the XDG_CONFIG_DIRS and XDG_CONFIG_HOME directoriesChris Robinson2013-06-161-0/+55
| | | | | | | This follows the XDG Base Directory Specification. The old files/locations are still supported, but configs found in XDG_CONFIG_DIRS take precedence over /etc/openal/alsoft.conf, and a config found in XDG_CONFIG_HOME takes precedence over $HOME/.alsoftrc.
* Trace config file names being loadedChris Robinson2013-06-161-1/+9
|
* Don't split config sections into separate blocksChris Robinson2013-06-161-73/+42
|
* Improve parsing of the config filesChris Robinson2013-06-161-69/+59
| | | | This will also now recognize (and strip) quotation marks from around values.
* Again try to get _WIN32_IE to behave right with MinGWChris Robinson2012-09-111-1/+1
|
* Avoid size_t and ssize_t in some placesChris Robinson2011-09-201-9/+9
|
* Add a ConfigValueStr function, to return the string through a parameterChris Robinson2011-09-191-0/+9
|
* Return int and float config values through a parameterChris Robinson2011-09-181-7/+18
| | | | | This allows the getter functions to return whether or not the option exists without a separate call and check.
* Avoid a buffer underrun when getting the end of a config option valueChris Robinson2011-09-181-2/+3
|
* Rename the ERROR macro to ERRChris Robinson2011-07-131-5/+5
|
* Use logging macros for config handlingChris Robinson2011-07-101-9/+12
|
* Avoid multiple getenv calls to the same varChris Robinson2011-05-171-4/+5
|
* Reduce some indentationChris Robinson2010-05-121-14/+14
|
* Mingw64's shlobj.h wants at least 0x501Alam Arias2010-03-181-2/+5
|
* Use size_t where appropriateChris Robinson2010-03-181-1/+1
| | | | Spotted by Alam Arias
* Define _WIN32_IE to 0x400 only if it's a lesser value by defaultChris Robinson2010-03-181-1/+2
| | | | Spotted by Alam Arias
* Return the default config string for empty entriesChris Robinson2010-01-091-1/+5
|
* Add a function to check if a config option is set to a non-empty valueChris Robinson2009-12-281-0/+6
|
* GetConfigValueBool should take an int, not a floatChris Robinson2009-12-261-1/+1
|
* Make a GetConfigValueBool function and use itChris Robinson2009-09-151-0/+9
|
* Don't read deprecated config filesChris Robinson2009-06-071-15/+0
|
* add check for _WAVEFORMATEXTENSIBLE_ and define _WIN32_IE before inlcuding ↵Alam Arias2009-06-071-2/+5
| | | | any header
* Allow specifying another config file with the ALSOFT_CONF env varChris Robinson2008-11-131-0/+9
|
* Use %AppData%\alsoft.ini for the config file in WindowsChris Robinson2008-06-041-0/+16
|
* Use less ambiguous config file namesChris Robinson2008-01-191-2/+17
|
* Add missing config.h includesChris Robinson2008-01-161-0/+2
|
* Use an AL_PRINT macro for printing lib messages/errors to the consoleChris Robinson2007-11-301-9/+11
|
* Initial importChris Robinson2007-11-131-0/+283