mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-21 12:00:16 -06:00
Fix save files not getting redirected without include directories. (#146)
This commit is contained in:
@@ -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