mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Fix save files not getting redirected without include directories. (#146)
This commit is contained in:
parent
010c0a9fdf
commit
fbc4bfa4d6
1 changed files with 3 additions and 3 deletions
|
|
@ -26,9 +26,6 @@ static std::vector<Mod> g_mods;
|
||||||
|
|
||||||
std::filesystem::path ModLoader::ResolvePath(std::string_view path)
|
std::filesystem::path ModLoader::ResolvePath(std::string_view path)
|
||||||
{
|
{
|
||||||
if (g_mods.empty())
|
|
||||||
return {};
|
|
||||||
|
|
||||||
std::string_view root;
|
std::string_view root;
|
||||||
|
|
||||||
size_t sepIndex = path.find(":\\");
|
size_t sepIndex = path.find(":\\");
|
||||||
|
|
@ -51,6 +48,9 @@ std::filesystem::path ModLoader::ResolvePath(std::string_view path)
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_mods.empty())
|
||||||
|
return {};
|
||||||
|
|
||||||
thread_local xxHashMap<std::filesystem::path> s_cache;
|
thread_local xxHashMap<std::filesystem::path> s_cache;
|
||||||
|
|
||||||
XXH64_hash_t hash = XXH3_64bits(path.data(), path.size());
|
XXH64_hash_t hash = XXH3_64bits(path.data(), path.size());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue