VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::InstalledPlugins Namespace Reference

Functions

InstalledScan Discover (const std::filesystem::path &plugins)
 

Detailed Description

SDK-free, so tests run it against a real plugins directory.

Function Documentation

◆ Discover()

InstalledScan VoltMod::InstalledPlugins::Discover ( const std::filesystem::path &  plugins)

Every <plugins>/<name>/plugin.json. A directory without one is skipped silently; a malformed manifest, or one naming another plugin, is refused.

Definition at line 47 of file InstalledPlugins.cpp.

References VoltMod::Log::Error(), VoltMod::Error::Invalid(), VoltMod::ManifestName, VoltMod::ReadFile(), and VoltMod::Json::ReadFile().

Referenced by VoltMod::Installed().