Table of Contents

Class ModSystem

Namespace
VAMP.Services
Assembly
VAMP.dll
public class ModSystem
Inheritance
ModSystem
Inherited Members

Constructors

ModSystem()

Initializes the ModSystem and caches mod information.

public ModSystem()

Methods

GetLoadedMods()

Gets information about all loaded BepInEx plugins/mods.

public static Dictionary<string, PluginInfo> GetLoadedMods()

Returns

Dictionary<string, PluginInfo>

A dictionary containing plugin GUID as key and PluginInfo as value.

GetLoadedModsInfo()

Gets a list of all loaded mod names and versions.

public static List<ModInfo> GetLoadedModsInfo()

Returns

List<ModInfo>

A list of tuples containing mod name and version.

IsModLoaded(string)

Checks if a specific mod is loaded by GUID.

public static bool IsModLoaded(string modGuid)

Parameters

modGuid string

The GUID of the mod to check for.

Returns

bool

True if the mod is loaded, false otherwise.

LogLoadedMods()

Logs all loaded mods to the console/log file.

public static void LogLoadedMods()

RefreshModCache()

Refreshes the internal mod cache.

public static void RefreshModCache()

TryGetMod(string, out PluginInfo)

Gets a specific mod by GUID.

public static bool TryGetMod(string modGuid, out PluginInfo modInfo)

Parameters

modGuid string

The GUID of the mod to retrieve.

modInfo PluginInfo

The mod information if found.

Returns

bool

True if the mod was found, false otherwise.