Added new icons for the filebrowser

This commit is contained in:
Antoine Pilote
2023-12-17 13:29:09 -05:00
parent feffc5a1bc
commit 5e64b5be5b
4 changed files with 94 additions and 5 deletions

View File

@@ -66,7 +66,8 @@ namespace Nuake
Wad,
Map,
Assembly,
Solution
Solution,
Audio
};
class File
@@ -87,11 +88,14 @@ namespace Nuake
FileType GetFileType() const
{
std::string ext = GetExtension();
if (ext == ".png" || ext == "jpg")
if (ext == ".png" || ext == ".jpg")
{
return FileType::Image;
}
if (ext == ".ogg" || ext == ".wav")
{
return FileType::Audio;
}
if (ext == ".material")
{
return FileType::Material;