diff --git a/lib/libimhex/source/helpers/default_paths.cpp b/lib/libimhex/source/helpers/default_paths.cpp index 030022beb..62cf32af4 100644 --- a/lib/libimhex/source/helpers/default_paths.cpp +++ b/lib/libimhex/source/helpers/default_paths.cpp @@ -84,7 +84,9 @@ namespace hex::paths { #endif } - static std::vector appendPath(std::vector paths, const std::fs::path &folder) { + static std::vector appendPath(std::vector paths, std::fs::path folder) { + folder.make_preferred(); + for (auto &path : paths) path = path / folder;