mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-07 01:02:35 +00:00
ObjLoading: Add indexing and reading of files in IWDs
This commit is contained in:
@@ -11,8 +11,6 @@ IObjLoader* objLoaders[]
|
||||
new ObjLoaderT6()
|
||||
};
|
||||
|
||||
SearchPaths iwdSearchPaths;
|
||||
|
||||
void ObjLoading::LoadReferencedContainersForZone(ISearchPath* searchPath, Zone* zone)
|
||||
{
|
||||
for (auto* loader : objLoaders)
|
||||
@@ -81,7 +79,14 @@ void ObjLoading::UnloadIWDsInSearchPath(ISearchPath* searchPath)
|
||||
IWD::Repository.RemoveContainerReferences(searchPath);
|
||||
}
|
||||
|
||||
ISearchPath* ObjLoading::GetIWDSearchPaths()
|
||||
SearchPaths ObjLoading::GetIWDSearchPaths()
|
||||
{
|
||||
return &iwdSearchPaths;
|
||||
SearchPaths iwdPaths;
|
||||
|
||||
for(auto iwd : IWD::Repository)
|
||||
{
|
||||
iwdPaths.IncludeSearchPath(iwd);
|
||||
}
|
||||
|
||||
return iwdPaths;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user