11 const auto it = std::ranges::find(_saved, name, &Snapshot::Name);
12 if (
it == _saved.end())
17 Write(
it->Name,
it->Value);
23 for (
const auto&
entry : _saved)
30void ConVarOverrides::Write(std::string_view name, std::string_view value)
void Restore(const ConVar< T > &cvar)
void SetByConsole(std::string_view name, std::string_view value)
Assign a convar over the console, quoting the value.
static std::string ReadFile(const std::filesystem::path &path)