Change: Display more useful information in sprite aligner than sprite ID. (#12439)

Sprite IDs are not useful information given they change don't refer to anything outside the loaded game.

Instead, include the filename and nfo line at minimum, and include action A or action 5 sprite replacement information if applicable.
This commit is contained in:
Peter Nelson
2024-04-06 21:16:02 +01:00
committed by GitHub
parent fbdf26800b
commit 34ba969c74
7 changed files with 123 additions and 33 deletions

View File

@@ -74,6 +74,15 @@ static SpriteFile *GetCachedSpriteFileByName(const std::string &filename)
return nullptr;
}
/**
* Get the list of cached SpriteFiles.
* @return Read-only list of cache SpriteFiles.
*/
std::span<const std::unique_ptr<SpriteFile>> GetCachedSpriteFiles()
{
return _sprite_files;
}
/**
* Open/get the SpriteFile that is cached for use in the sprite cache.
* @param filename Name of the file at the disk.