From a002eb1bc196d0ffec4d4d89b59d30becb15b7ad Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 23 Jun 2024 15:03:36 +0200 Subject: [PATCH] fix: Mixed path separators in default paths --- lib/libimhex/source/helpers/default_paths.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;