VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
MultiAddonManager.cpp
Go to the documentation of this file.
2
3namespace VoltMod
4{
5
7{
8 if (!_host.Add(addonId))
9 {
10 return {};
11 }
12 return Subscription([&host = _host, addonId] { host.Remove(addonId); });
13}
14
15} // namespace VoltMod
Subscription Add(uint64_t addonId)
Owns one registration and releases it on destruction.
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
virtual bool Add(uint64_t addonId)=0