class

FModManager

Mods for a shipped game: content paks found under the mod roots, an enable list the player owns, a load order from dependencies and loadAfter, every pak's signature checked, and a report of everything that does not fit — before anything mounts above the game's own archives.

Module
Game
Header
#include "Mods/ModManager.h"
Namespace
Mowo

Type aliases

AliasDescription
using FRootProvider = std::function<std::vector<FModRoot>()>

Constructors

SignatureNameDescription
FModManager(const FModManager&) = deleteFModManager

Public functions

ReturnsNameDescription
FModManager&Get
FModManager&operator=
voidAddSearchRootMod roots: each holds one folder per mod.
voidClearSearchRoots
voidRegisterRootProvider
voidUnregisterRootProvider
voidSetEnableListPathINI the player's choices live in: which mods are on, their order, and the key each was first seen signed with.
voidSetTrustedKeysKeys trusted to sign any mod — the studio's, a curated list.
int32_tScanFinds every mod under the roots (and the providers').
int32_tMountEnabledOrders the enabled mods, verifies and mounts them above the game's paks from basePriority up.
voidUnmountAll
voidStartupForGameThe shipped game's entry: roots <package>/Mods and Saved/Mods, the enable list in Saved/Config/Mods.ini, then Scan + MountEnabled.
boolSetEnabled
boolIsEnabled
boolMoveInOrder
boolSaveEnableList
std::vector<FModInfo>GetMods
std::vector<std::string>GetLoadOrder
std::vector<FModConflictInfo>GetConflicts
std::stringBuildReport
boolLoadDescriptor
boolParseKeyHex
std::stringKeyToHex
voidResetResets everything; tests start clean with it.

Function details

FModManager

C++
FModManager(const FModManager&) = delete

Get

C++
static FModManager& Get()

operator=

C++
FModManager& operator=(const FModManager&) = delete

AddSearchRoot

C++
void AddSearchRoot(const std::string& path, const std::string& source = "local")

Mod roots: each holds one folder per mod.

ClearSearchRoots

C++
void ClearSearchRoots()

RegisterRootProvider

C++
void RegisterRootProvider(const std::string& name, FRootProvider provider)

UnregisterRootProvider

C++
void UnregisterRootProvider(const std::string& name)

SetEnableListPath

C++
void SetEnableListPath(const std::string& path)

INI the player's choices live in: which mods are on, their order, and the key each was first seen signed with.

SetTrustedKeys

C++
void SetTrustedKeys(const std::vector<std::array<uint8_t, 32>>& keys)

Keys trusted to sign any mod — the studio's, a curated list. Under mods.TrustedOnly only these are accepted; otherwise a mod may be signed by its author's key, the one its manifest names.

Scan

C++
int32_t Scan()

Finds every mod under the roots (and the providers'). Returns the count.

MountEnabled

C++
int32_t MountEnabled(int32_t basePriority = 300)

Orders the enabled mods, verifies and mounts them above the game's paks from basePriority up. Returns the number mounted.

UnmountAll

C++
void UnmountAll()

StartupForGame

C++
void StartupForGame(const std::string& paksDir)

The shipped game's entry: roots <package>/Mods and Saved/Mods, the enable list in Saved/Config/Mods.ini, then Scan + MountEnabled.

SetEnabled

C++
bool SetEnabled(const std::string& name, bool enabled)

IsEnabled

C++
bool IsEnabled(const std::string& name) const

MoveInOrder

C++
bool MoveInOrder(const std::string& name, int32_t delta)

SaveEnableList

C++
bool SaveEnableList() const

GetMods

C++
std::vector<FModInfo> GetMods() const

GetLoadOrder

C++
std::vector<std::string> GetLoadOrder() const

GetConflicts

C++
std::vector<FModConflictInfo> GetConflicts() const

BuildReport

C++
std::string BuildReport() const

LoadDescriptor

C++
static bool LoadDescriptor(const std::string& manifestPath, FModDescriptor& out, std::string& error)

ParseKeyHex

C++
static bool ParseKeyHex(const std::string& hex, std::array<uint8_t, 32>& out)

KeyToHex

C++
static std::string KeyToHex(const uint8_t key[32])

Reset

C++
void Reset()

Resets everything; tests start clean with it.

Generated from Mods/ModManager.h via game.json · Nov 5, 2026Version 1.0.0