|
VoltMod
C++23 framework for CS2 server plugins
|
#include <ServerAssets.hpp>
Public Member Functions | |
| ServerAssets (IFileSystem *files) | |
| void | Mount (std::string_view plugin) |
| void | Unmount (std::string_view plugin) |
Each plugin's server-assets folder on the game's search path while the plugin is loaded, ahead of the game's VPKs, which beat loose files under game/csgo. Weapon subclasses apply from the next map.
Definition at line 14 of file ServerAssets.hpp.
|
inlineexplicit |
Null files mounts nothing.
Definition at line 18 of file ServerAssets.hpp.
| void VoltMod::ServerAssets::Mount | ( | std::string_view | plugin | ) |
Definition at line 11 of file ServerAssets.cpp.
References VoltMod::PluginFile(), VoltMod::ReadFile(), and VoltMod::ResolvePath().
| void VoltMod::ServerAssets::Unmount | ( | std::string_view | plugin | ) |
Definition at line 24 of file ServerAssets.cpp.
References VoltMod::ReadFile().