From 4ad9c848c0a4017772c3e32e8ceb5fd05fab513c Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Fri, 13 Sep 2024 19:33:17 +0300 Subject: [PATCH] fix filesystem path from json --- loader/include/Geode/utils/file.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/include/Geode/utils/file.hpp b/loader/include/Geode/utils/file.hpp index db75caf8..81996c66 100644 --- a/loader/include/Geode/utils/file.hpp +++ b/loader/include/Geode/utils/file.hpp @@ -17,7 +17,7 @@ struct matjson::Serialize { return path.string(); } static std::filesystem::path from_json(matjson::Value const& value) { - return value.as_string(); + return std::filesystem::path(value.as_string()).make_preferred(); } static bool is_json(matjson::Value const& value) { return value.is_string();