── KeyValuesSystem — symbol ↔ string (from vstdlib_s64.dll) ───
| 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(); |
no test coverage detected