Skip to content
EvilEngine.Mounts

FoundInstall record

public sealed record FoundInstall

One game a store has installed on this machine, as a finder’s Installs lists it: the store, the store’s key for it, its title and its folder, with any art and whether it’s being updated.

new FoundInstall(Store, $"app/{id}", app.Get("name") ?? folder, path)
{
    Art = Art(id),
    State = InstallState.Installed
};

The main menu probes each install’s folder in the background and lists the ones an installed adapter recognises in Content Mounts, unticked. Installs from every finder are merged, and when two point at the same folder the first one wins.

Assembly
EvilEngine.Mounts
Commit
4ff877b1

Members

FoundInstall constructor

public FoundInstall(string Store, string Key, string Title, string Path)

Makes an install from its store, key, title and folder.

Store property

public string Store { get; init; }

The finder’s Store, such as steam.

Key property

public string Key { get; init; }

The store’s own key for the install. Steam’s are app/<id>, as in app/4000 for Garry’s Mod. TryFind takes the same key, and the main menu matches it against [stores] in the adapters’ adapter.toml to tell an installed game from one that isn’t.

Title property

public string Title { get; init; }

The store’s name for the game. The steam finder takes the name from the app manifest, or the install folder’s name when there’s none. The library titles a game by its adapter, not by this.

Path property

public string Path { get; init; }

The install’s folder, an absolute host path, as in steamapps/common/GarrysMod in one Steam library. It’s what the main menu probes and what a pointer saves when the player ticks the game.

Art property

public FoundArt Art { get; init; }

The FoundArt the store has cached for it, or None unless set.

State property

public InstallState State { get; init; }

The InstallState, Installed unless set.