Fix save files not getting redirected without include directories. (#146)

This commit is contained in:
Skyth (Asilkan) 2025-01-22 17:01:37 +03:00 committed by GitHub
parent 010c0a9fdf
commit fbc4bfa4d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());