Table of Contents

Class BepInExLoaderPackage

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll

A reviewed, extracted BepInEx/UnityDoorstop package: identity and exact loader/core files, independent of a live Steam install. A prepared game may be copied into a disposable install, then this set is applied there before any plugin is staged. Static checks of the package do not claim it will start; the owned client still must reach its menu and write a fresh BepInEx log.

public sealed class BepInExLoaderPackage
Inheritance
object
BepInExLoaderPackage

Properties

Files

public Dictionary<string, string> Files { get; set; }

Property Value

Dictionary<string, string>

Identity

Name, version and Loader, as evidence records the package.

[JsonIgnore]
public string Identity { get; }

Property Value

string

Loader

The package's loader files as Loader hashes them: an install this package was applied to has this loader pin. BepInEx/config/BepInEx.cfg, which the package may also pin, is configuration and not part of it.

[JsonIgnore]
public string Loader { get; }

Property Value

string

Name

public string Name { get; set; }

Property Value

string

Root

public string Root { get; set; }

Property Value

string

Version

public string Version { get; set; }

Property Value

string

Methods

Capture(string, string, string)

Records one extracted loader set. The package root is read, never changed.

public static BepInExLoaderPackage Capture(string root, string name, string version)

Parameters

root string
name string
version string

Returns

BepInExLoaderPackage

Read(string)

Reads a package manifest and checks every pinned source file before it may be copied.

public static BepInExLoaderPackage Read(string path)

Parameters

path string

Returns

BepInExLoaderPackage

Validate()

Checks package identity, allowed paths, pinned contents and static BepInEx loader shape.

public void Validate()

Write(string)

public void Write(string path)

Parameters

path string