mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05: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