VirtualPath record struct
public readonly record struct VirtualPath : IComparable<VirtualPath> A path inside an IFileSource: relative to the source’s root, with forward slashes, no leading slash and no . or ... It can’t name a drive or leave its tree, so a path read from a game’s files is safe to follow. It’s a small value type, and a string converts to one implicitly, so "id1/PAK0.PAK" works wherever a path is asked for.
A path keeps the case it was written in. Whether two paths are the same file depends on the source’s CaseRule, so compare them through a Comparer, never by their text alone.
- Assembly
- EvilEngine.Mounts
- Commit
- 4ff877b1