Skip to content
EvilEngine.Mounts

ExternalHint record

public abstract record ExternalHint

Where an External usually is, when the player’s pointer doesn’t say. The host only reaches a hint after the pointer’s [externals] table, and for a game external after the open mounts and the probes on offer.

External.Folder("steamapps", new ExternalHint.Beside("../.."))

ExternalHint.HostPath(Path) is an absolute host path, such as a game’s save folder under the player’s home. A relative one leaves the external missing. Amnesia: The Dark Descent, Overgrowth and Rocket League find their user folders this way, and Garry’s Mod its mount.cfg folders.

ExternalHint.Beside(Relative) is a path relative to the location the pointer names, joined to it and then normalised, so .. climbs out of the game’s folder. Steam’s steamapps is ../.. from steamapps/common/<game> and its workshop ../../workshop. A location that isn’t an absolute host path has nothing beside it, so the external stays missing.

ExternalHint.Store(Name, Key) is an install a finder knows, by the finder’s Store and the store’s own key, as in steam and app/220. Every finder with that store name is asked through TryFind in turn, and the first folder found is used. With no finder for the store, or none that has the key, the external is missing. Garry’s Mod’s depot games are found this way. It prints as steam:app/220, which is how a missing one’s detail names it.

An external with no hint and nothing set in the pointer is missing, from nowhere.

Assembly
EvilEngine.Mounts
Commit
4ff877b1