mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 08:05:45 +00:00
Unlinker: Fix not attempting to load files from manually specified search paths
This commit is contained in:
parent
c2b28a54be
commit
b210661ac8
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user