Class VpkLink
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
Links to a file inside of a VPK, as copied by Source 2 Viewer, such as vpk:steam:730/game/csgo/pak01_dir.vpk:models/chicken/chicken.vmdl_c. Packages inside of packages are separated the same way, such as vpk:outer_dir.vpk:maps/inner.vpk:models/file.vmdl_c.
public static class VpkLinkInheritance
Fields
Prefix
Scheme of the links.
public const string Prefix = "vpk:"Field Value
Methods
EscapePath(string)
Escapes a package or inner path for a link, so that reads it back unchanged.
public static string EscapePath(string path)Parameters
path string
Returns
IsVpkLink(string)
Whether the text is a link.
public static bool IsVpkLink(string text)Parameters
text string
Returns
Parse(string)
Splits a link into the paths of the packages it goes through, and the path inside of the innermost one.
public static (List<string> PackagePaths, string InnerPath) Parse(string link)Parameters
link string
Returns
(List<string> PackagePaths, string InnerPath)
The package paths with the outermost first, which is empty when the link does not point inside of a package, and the path inside of the innermost package, or the whole path when there is no package.

