summaryrefslogtreecommitdiff
path: root/Libraries/LibCore/ConfigFile.cpp
AgeCommit message (Collapse)Author
2020-06-12AK: Make string-to-number conversion helpers return OptionalAndreas Kling
Get rid of the weird old signature: - int StringType::to_int(bool& ok) const And replace it with sensible new signature: - Optional<int> StringType::to_int() const
2020-04-23LibCore: read_bool_entry parse "true" / "false" strings in config filesBrendan Coles
`read_bool_entry()` can now interpret both integers (1 or 0) and Boolean strings ("true" or "false") in configuration files. All values other than "1" or "true" are considered false.
2020-04-19LibCore: Add StandardPaths thing to retrieve various standard locationsAndreas Kling
Fixes #1853.
2020-02-26LibCore: Allow ConfigFile::read_num_entry to handle negative numbersJesse Buhagiar
Previously, this function was using `AK::String::to_uint()`, which is wrong considering the function returns type `int`. This also means that configuration files would revert to the default value on negative values.
2020-02-06LibCore: Remove leading C from filenamesAndreas Kling