@@ -10,7 +10,8 @@ namespace RealEngine {
1010 { " .png" , AssetType::Texture2D },
1111 { " .jpg" , AssetType::Texture2D },
1212 { " .jpeg" , AssetType::Texture2D },
13- { " .shader" , AssetType::Shader }
13+ { " .shader" , AssetType::Shader },
14+ { " .ttf" , AssetType::Font }
1415 };
1516
1617 static AssetType GetAssetTypeFromFileExtension (const std::filesystem::path& extension) {
@@ -26,6 +27,8 @@ namespace RealEngine {
2627 switch (type) {
2728 case AssetType::Texture2D:
2829 return Texture2DMetadata{};
30+ case AssetType::Font:
31+ return {}; // No custom metadata for fonts yet
2932 default :
3033 RE_CORE_ASSERT (false , " AssetType {} is not supported for CustomMetadata" , (uint16_t )type);
3134 return {};
@@ -181,7 +184,9 @@ namespace RealEngine {
181184 if (it->second .use_count () == 1 ) {
182185 AssetHandle handle = it->first ;
183186 std::filesystem::path& path = m_AssetRegistry[handle].FilePath ;
184- RE_CORE_INFO (" Unloading unused asset with filename: {}" , path.filename ());
187+
188+ AssetType type = m_AssetRegistry[handle].Type ;
189+ RE_CORE_INFO (" Unloading unused {} asset with filename: {}" , Utils::GetAssetTypeString (type), path.filename ());
185190
186191 it = m_LoadedAssets.erase (it);
187192 }
0 commit comments