mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-11-01 03:56:40 +01:00
Fix save files not getting redirected without include directories. (#146)
This commit is contained in:
1 parent
010c0a9fdf
commit
fbc4bfa4d6
1 file changed
+3
-3
@@ -26,9 +26,6 @@ static std::vector<Mod> 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<std::filesystem::path> s_cache;
|
||||
|
||||
XXH64_hash_t hash = XXH3_64bits(path.data(), path.size());
|
||||
|
||||
Reference in new issue
Block a user