Skip to content
EvilEngine.Mounts

FoundArt record

public sealed record FoundArt

The images a store has cached for one game, as host file paths. Any of them is null when the store has none. A finder hands it back with each FoundInstall and from its Art.

The steam finder looks for each in appcache/librarycache/<id> under each Steam root, in subfolders too, whether or not the app is still installed. The main menu’s library prefers the art its own Steam licence finds when that has a header or hero, and otherwise uses the install’s.

Assembly
EvilEngine.Mounts
Commit
4ff877b1

Members

FoundArt constructor

public FoundArt(string? Capsule, string? Header, string? Hero, string? Logo)

Makes art from the four images. Set Icon with an initialiser.

Capsule property

public string? Capsule { get; init; }

The tall cover image, Steam’s library_600x900.jpg. The main menu’s shelf of mounted games shows it at 160 by 240, and the game’s title in its place when there’s none.

Hero property

public string? Hero { get; init; }

The wide banner image, Steam’s library_hero.jpg, shown across the top of the game’s page.

Icon property

public string? Icon { get; init; }

The small square icon, for Steam the .jpg in the cache folder named by 40 lower-case hex digits. The library row shows it at 16 by 16, and the first three letters of the platform in a box when there’s none.

None property

public static FoundArt None { get; }

Art with every image null, which a finder returns when the store has nothing cached and a FoundInstall carries unless set.