# HG changeset patch # User Paper # Date 1699628821 18000 # Node ID 7d3ad9529c4c8b34fbcb501ce26fd43a01aebeb8 # Parent 0a458cb26ff4bb644f74ab93970b5b95b182f773 ini: fix bool getters to provide default vals for bools and ints diff -r 0a458cb26ff4 -r 7d3ad9529c4c include/core/ini.h --- a/include/core/ini.h Thu Nov 09 18:01:56 2023 -0500 +++ b/include/core/ini.h Fri Nov 10 10:07:01 2023 -0500 @@ -42,10 +42,10 @@ /* Integer? */ if constexpr (std::is_same::value) { /* Boolean? */ - return Strings::ToBool(val); + return Strings::ToBool(val, def); } else { /* Always fall back to long long */ - return Strings::ToInt(val); + return Strings::ToInt(val, def); } } else { return val; diff -r 0a458cb26ff4 -r 7d3ad9529c4c src/core/filesystem.cc --- a/src/core/filesystem.cc Thu Nov 09 18:01:56 2023 -0500 +++ b/src/core/filesystem.cc Fri Nov 10 10:07:01 2023 -0500 @@ -55,7 +55,6 @@ else return std::filesystem::path(); #endif // !WIN32 && !MACOSX - return path / CONFIG_DIR; } std::filesystem::path GetConfigPath() {