Forgot function to actually retrieve root folder pointer hehe

This commit is contained in:
Xiao Qi 2022-10-30 04:41:24 +08:00
parent ffc55c5e0c
commit 087cbcabaf
2 changed files with 8 additions and 1 deletions

View File

@ -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)
{

View File

@ -88,6 +88,8 @@ namespace SHADE
static std::vector<SHAsset> GetAllRecordOfType(AssetType type) noexcept;
static AssetID CompileAsset(AssetPath const& path) noexcept;
static FolderPointer GetRootFolder() noexcept;
private: