comparison src/core/filesystem.cc @ 136:7d3ad9529c4c

ini: fix bool getters to provide default vals for bools and ints
author Paper <mrpapersonic@gmail.com>
date Fri, 10 Nov 2023 10:07:01 -0500
parents 0a458cb26ff4
children 28842a8d0c6b
comparison
equal deleted inserted replaced
135:0a458cb26ff4 136:7d3ad9529c4c
53 if (!path.empty()) 53 if (!path.empty())
54 return path / ".config"; 54 return path / ".config";
55 else 55 else
56 return std::filesystem::path(); 56 return std::filesystem::path();
57 #endif // !WIN32 && !MACOSX 57 #endif // !WIN32 && !MACOSX
58 return path / CONFIG_DIR;
59 } 58 }
60 59
61 std::filesystem::path GetConfigPath() { 60 std::filesystem::path GetConfigPath() {
62 return GetDotPath() / CONFIG_NAME; 61 return GetDotPath() / CONFIG_NAME;
63 } 62 }