diff --git a/SHADE_Engine/src/Assets/SHAssetManager.cpp b/SHADE_Engine/src/Assets/SHAssetManager.cpp index 658c80b0..682eb9ec 100644 --- a/SHADE_Engine/src/Assets/SHAssetManager.cpp +++ b/SHADE_Engine/src/Assets/SHAssetManager.cpp @@ -343,7 +343,12 @@ namespace SHADE return newAsset.id; } - bool SHAssetManager::IsRecognised(char const* ext) noexcept + FolderPointer SHAssetManager::GetRootFolder() noexcept + { + return folderRoot; + } + + bool SHAssetManager::IsRecognised(char const* ext) noexcept { for (auto const& e : EXTENSIONS) { diff --git a/SHADE_Engine/src/Assets/SHAssetManager.h b/SHADE_Engine/src/Assets/SHAssetManager.h index fea20332..64527e01 100644 --- a/SHADE_Engine/src/Assets/SHAssetManager.h +++ b/SHADE_Engine/src/Assets/SHAssetManager.h @@ -88,6 +88,8 @@ namespace SHADE static std::vector GetAllRecordOfType(AssetType type) noexcept; static AssetID CompileAsset(AssetPath const& path) noexcept; + + static FolderPointer GetRootFolder() noexcept; private: