Externals class
public sealed class Externals : IReadOnlyList<ResolvedExternal> Every External a probe declared, resolved, in the order it declared them. The host hands it to Open, and the open mount keeps it. Look one up by name and check that it resolved before reading its files.
if (externals[Steamapps.Name] is not { IsResolved: true, Files: { } steamapps, Location: { } library } ||
externals[Depotcache.Name] is not { IsResolved: true, Files: { } depotcache })
return claims;
The host resolves each external in turn. The pointer’s [externals] table comes first, by the external’s name, unless the game’s own config switches it: a path there is used as it is, and false turns it off. Then an external that’s off by default stays off. A game external takes an open mount that fits, or opens a probe on offer that fits. Last comes the external’s hint, and with none it’s missing. A path is used only when it’s absolute and there: a folder is read as it is, a file through the container adapter that recognises it, and for a game external the path is probed. Every answer is a ResolvedExternal saying where it came from, so nothing missing throws.
- Assembly
- EvilEngine.Mounts
- Commit
- 4ff877b1