与metamod兼容

This commit is contained in:
huoji
2023-10-10 16:49:15 +08:00
parent 0376637e06
commit d55d0f515b
8 changed files with 64 additions and 31 deletions

View File

@@ -37,6 +37,7 @@ auto init(void* ctx) -> bool {
Sleep(200);
}
global::isMetaModInit = (GetModuleHandleA("metamod.2.cs2.dll") != nullptr);
if (Offset::Init() == false) {
LOG("Offset::Init() == false !\n");
return false;