Unlinker: Fix not attempting to load files from manually specified search paths

This commit is contained in:
Jan 2020-02-07 20:53:41 +01:00
parent c2b28a54be
commit b210661ac8

View File

@ -231,7 +231,7 @@ class Unlinker::Impl
return false; return false;
} }
SearchPathFilesystem* searchPath = new SearchPathFilesystem(absolutePath); auto* searchPath = new SearchPathFilesystem(absolutePath);
LoadSearchPath(searchPath); LoadSearchPath(searchPath);
m_search_paths.CommitSearchPath(searchPath); m_search_paths.CommitSearchPath(searchPath);
@ -401,6 +401,7 @@ public:
std::string absoluteZoneDirectory = absolute(std::filesystem::path(zonePath).remove_filename()).string(); std::string absoluteZoneDirectory = absolute(std::filesystem::path(zonePath).remove_filename()).string();
SearchPaths searchPathsForZone = GetSearchPathsForZone(absoluteZoneDirectory); SearchPaths searchPathsForZone = GetSearchPathsForZone(absoluteZoneDirectory);
searchPathsForZone.IncludeSearchPath(&m_search_paths);
Zone* zone = ZoneLoading::LoadZone(zonePath); Zone* zone = ZoneLoading::LoadZone(zonePath);
if (zone == nullptr) if (zone == nullptr)