Merge pull request #12323 from lioncash/virt

CustomAssetLibrary: Add virtual destructor
This commit is contained in:
Tilka 2023-11-26 00:54:11 +00:00 committed by GitHub
commit c16e98a31f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -28,9 +28,11 @@ public:
struct LoadInfo struct LoadInfo
{ {
std::size_t m_bytes_loaded = 0; std::size_t m_bytes_loaded = 0;
CustomAssetLibrary::TimeType m_load_time = {}; TimeType m_load_time = {};
}; };
virtual ~CustomAssetLibrary() = default;
// Loads a texture, if there are no levels, bytes loaded will be empty // Loads a texture, if there are no levels, bytes loaded will be empty
virtual LoadInfo LoadTexture(const AssetID& asset_id, TextureData* data) = 0; virtual LoadInfo LoadTexture(const AssetID& asset_id, TextureData* data) = 0;