From 93d2242b85e21075f571ae1456806eb1ccc2393a Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Wed, 22 Jan 2025 16:49:10 +0300 Subject: [PATCH] Fix save files not getting redirected without include directories. --- UnleashedRecomp/mod/mod_loader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UnleashedRecomp/mod/mod_loader.cpp b/UnleashedRecomp/mod/mod_loader.cpp index a514f1d2..bc60cae0 100644 --- a/UnleashedRecomp/mod/mod_loader.cpp +++ b/UnleashedRecomp/mod/mod_loader.cpp @@ -26,9 +26,6 @@ static std::vector g_mods; std::filesystem::path ModLoader::ResolvePath(std::string_view path) { - if (g_mods.empty()) - return {}; - std::string_view root; size_t sepIndex = path.find(":\\"); @@ -51,6 +48,9 @@ std::filesystem::path ModLoader::ResolvePath(std::string_view path) return {}; } + if (g_mods.empty()) + return {}; + thread_local xxHashMap s_cache; XXH64_hash_t hash = XXH3_64bits(path.data(), path.size());