12struct glz::meta<
VoltMod::GameDataRecord::Location>
19struct glz::meta<
VoltMod::GameDataRecord::Slot>
39 constexpr std::string_view path =
"addons/voltmod/gamedata/dumps/resolved.json";
47 stamped.
Build = build;
50 Log::Warn(
"GameData: no record written to {}: {}", path, written.error().Detail);
54 Log::Info(
"GameData: recorded what resolved on server {} in {}.", build, path);
static std::string WritePretty(const T &value)
Serialize value as prettified JSON.
static Result< T > ReadFile(std::string_view path)
Parse path (resolved via ResolvePath) into T.
void Info(std::format_string< Args... > fmt, Args &&... args)
void Warn(std::format_string< Args... > fmt, Args &&... args)
void WriteGameDataRecord(const GameDataRecord &resolved)
std::expected< void, Error > Status
std::string_view GameBuild()
Status WriteAllText(std::string_view path, std::string_view text)
Write text to path (resolved via ResolvePath), creating its directory.
uint64_t Code
RVA of the function in that slot; 0 when a hook trampoline outside the module holds it.
uint64_t Table
The class table's RVA.
std::map< std::string, Location > Functions
std::map< std::string, Location > Globals
std::map< std::string, int > Offsets
std::map< std::string, Slot > VTables