MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / GetKeyValuesSystem

Function GetKeyValuesSystem

src/Hook/Hooks_KeyValues.cpp:17–26  ·  view source on GitHub ↗

── KeyValuesSystem — symbol ↔ string (from vstdlib_s64.dll) ───

Source from the content-addressed store, hash-verified

15
16 // ── KeyValuesSystem — symbol ↔ string (from vstdlib_s64.dll) ───
17 IKeyValuesSystem* GetKeyValuesSystem() {
18 static IKeyValuesSystem* sys = []() -> IKeyValuesSystem* {
19 auto vstdlib = OSTPlatform::DynamicLibrary::GetLoaded("vstdlib_s64.dll");
20 if (!vstdlib) return nullptr;
21 auto pfn = reinterpret_cast<KeyValuesSystemSteam_t>(
22 OSTPlatform::DynamicLibrary::GetSymbol(vstdlib, "KeyValuesSystemSteam"));
23 return pfn ? pfn() : nullptr;
24 }();
25 return sys;
26 }
27
28 const char* GetKeyName(int symbol) {
29 auto* sys = GetKeyValuesSystem();

Callers 1

GetKeyNameFunction · 0.85

Calls 2

GetLoadedFunction · 0.85
GetSymbolFunction · 0.85

Tested by

no test coverage detected