fix IVEngineCvar

This commit is contained in:
huoji
2023-10-09 20:31:59 +08:00
parent c9571016e4
commit 56a4e148c2

View File

@@ -54,6 +54,7 @@ auto Init() -> bool {
CModule schemasystem("schemasystem.dll"); CModule schemasystem("schemasystem.dll");
CModule engine("engine2.dll"); CModule engine("engine2.dll");
CModule localize("localize.dll"); CModule localize("localize.dll");
CModule tier0("tier0.dll");
// engine.dll // engine.dll
engine.FindPattern(pattern_MaxPlayerNumsPtr) engine.FindPattern(pattern_MaxPlayerNumsPtr)
@@ -89,7 +90,7 @@ auto Init() -> bool {
InterFaces::ILocalize = reinterpret_cast<CLocalize*>( InterFaces::ILocalize = reinterpret_cast<CLocalize*>(
localize.FindInterface("Localize_001").Get()); localize.FindInterface("Localize_001").Get());
InterFaces::IVEngineCvar = reinterpret_cast<ICvar*>( InterFaces::IVEngineCvar = reinterpret_cast<ICvar*>(
engine.FindInterface("VEngineCvar007").Get()); tier0.FindInterface("VEngineCvar007").Get());
InterFaces::GameResourceServiceServer = InterFaces::GameResourceServiceServer =
reinterpret_cast<CGameResourceService*>( reinterpret_cast<CGameResourceService*>(