Table of Contents

Class Plugin

Namespace
PolyMod
Assembly
PolyMod.dll

The BepInEx plugin of PolyMod. BepInEx loads this plugin and calls Load().

[BepInPlugin("com.polymod", "PolyMod", "2.0.0-pre")]
public class Plugin : BasePlugin
Inheritance
BasePlugin
Plugin
Inherited Members
BasePlugin.Unload()
BasePlugin.AddComponent<T>()
BasePlugin.Log
BasePlugin.Config

Fields

BASE_PATH

The root directory of PolyMod files. This is the parent directory of the BepInEx root directory.

public static readonly string BASE_PATH

Field Value

string

DUMPED_DATA_PATH

The path of the directory to which PolyMod writes the dumped game data.

public static readonly string DUMPED_DATA_PATH

Field Value

string

LOCALIZATION_DUMP_PATH

The path of the directory to which PolyMod writes the dumped localization.

public static readonly string LOCALIZATION_DUMP_PATH

Field Value

string

LOGIC_DUMP_PATH

The path of the directory to which PolyMod writes the dumped GLD and avatar data.

public static readonly string LOGIC_DUMP_PATH

Field Value

string

MODS_PATH

The path of the directory that contains the mods.

public static readonly string MODS_PATH

Field Value

string

PREFABS_DUMP_PATH

The path of the directory to which PolyMod writes the dumped prefab data.

public static readonly string PREFABS_DUMP_PATH

Field Value

string

SPRITES_DUMP_PATH

The path of the directory to which PolyMod writes the dumped sprites and sprite infos.

public static readonly string SPRITES_DUMP_PATH

Field Value

string

Methods

Load()

Starts PolyMod. BepInEx calls this method when it loads the plugin.

public override void Load()

Remarks

The method reads the configuration from PolyMod.Plugin.CONFIG_PATH. If the file is missing or not valid, it uses the default configuration. Then it writes the configuration back to the file and updates the console. It sets the BepInEx Logging.Disk.WriteUnityLog setting to true and calls PolyMod.Plugin.CaptureLaunchData(). If PolyMod.Plugin.Disabled is true, the method stops there. Otherwise, it starts the PolyMod managers.