Add more insights on potentially missing asset file data chunks

This commit is contained in:
Wojtek Figat
2024-03-12 13:25:25 +01:00
parent 94520d30ad
commit fc29d687b5
3 changed files with 53 additions and 23 deletions

View File

@@ -81,36 +81,17 @@ public:
/// <summary>
/// Gets the amount of created asset chunks.
/// </summary>
/// <returns>Created asset chunks</returns>
int32 GetChunksCount() const
{
int32 result = 0;
for (int32 i = 0; i < ASSET_FILE_DATA_CHUNKS; i++)
{
if (Chunks[i] != nullptr)
result++;
}
return result;
}
int32 GetChunksCount() const;
/// <summary>
/// Deletes all chunks. Warning! Chunks are managed internally, use with caution!
/// </summary>
void DeleteChunks()
{
for (int32 i = 0; i < ASSET_FILE_DATA_CHUNKS; i++)
{
SAFE_DELETE(Chunks[i]);
}
}
void DeleteChunks();
/// <summary>
/// Unlinks all chunks.
/// </summary>
void UnlinkChunks()
{
Platform::MemoryClear(Chunks, sizeof(Chunks));
}
void UnlinkChunks();
/// <summary>
/// Gets string with a human-readable info about that header