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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user