16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 18:09:18 +02:00

Merge pull request #124 from xwizard/refactor/user-config-path

refactor: extract user_config_path() helper
This commit is contained in:
2026-06-30 22:35:53 +02:00
committed by GitHub
8 changed files with 38 additions and 78 deletions

View File

@@ -25,6 +25,10 @@ template <typename T> constexpr T sq(T v)
return v * v;
}
// returns the per-user config path for `filename` (platform-specific dir),
// or an empty path if the home/appdata env var is unavailable
std::filesystem::path user_config_path(const std::string &filename);
// TODO: Shouldn't this be in globals?
namespace paths
{