Skip to content

Commit 10dfb67

Browse files
committed
holylib: remove this from 64x for now
Should be the cause of #29 ToDo: improve my testing setup as currently I only have 1 server that I switch between dev & 64x and thats shit.
1 parent 9e9b639 commit 10dfb67

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/modules/holylib.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ LUA_FUNCTION_STATIC(SetSignOnState)
223223
return 1;
224224
}
225225

226+
#if ARCHITECTURE_IS_X86
226227
static Detouring::Hook detour_CFuncLadder_PlayerGotOn;
227228
static void hook_CFuncLadder_PlayerGotOn(CBaseEntity* pLadder, CBasePlayer* pPly)
228229
{
@@ -277,6 +278,7 @@ LUA_FUNCTION_STATIC(GetLadder)
277278
Util::Push_Entity(CHL2GameMovement::GetLadder(pPly));
278279
return 1;
279280
}
281+
#endif
280282

281283
static bool bInMoveTypeCall = false; // If someone calls SetMoveType inside the hook, we don't want a black hole to form.
282284
static Detouring::Hook detour_CBaseEntity_SetMoveType;
@@ -408,6 +410,7 @@ void CHolyLibModule::InitDetour(bool bPreServer)
408410
(void*)hook_CBaseEntity_PostConstructor, m_pID
409411
);
410412

413+
#if ARCHITECTURE_IS_X86
411414
Detour::Create(
412415
&detour_CFuncLadder_PlayerGotOn, "CFuncLadder::PlayerGotOn",
413416
server_loader.GetModule(), Symbols::CFuncLadder_PlayerGotOnSym,
@@ -419,6 +422,7 @@ void CHolyLibModule::InitDetour(bool bPreServer)
419422
server_loader.GetModule(), Symbols::CFuncLadder_PlayerGotOffSym,
420423
(void*)hook_CFuncLadder_PlayerGotOff, m_pID
421424
);
425+
#endif
422426

423427
Detour::Create(
424428
&detour_CBaseEntity_SetMoveType, "CBaseEntity::SetMoveType",
@@ -436,6 +440,8 @@ void CHolyLibModule::InitDetour(bool bPreServer)
436440
func_CBaseAnimating_InvalidateBoneCache = (Symbols::CBaseAnimating_InvalidateBoneCache)Detour::GetFunction(server_loader.GetModule(), Symbols::CBaseAnimating_InvalidateBoneCacheSym);
437441
Detour::CheckFunction((void*)func_CBaseAnimating_InvalidateBoneCache, "CBaseAnimating::InvalidateBoneCache");
438442

443+
#if ARCHITECTURE_IS_X86
439444
func_CHL2_Player_ExitLadder = (Symbols::CHL2_Player_ExitLadder)Detour::GetFunction(server_loader.GetModule(), Symbols::CHL2_Player_ExitLadderSym);
440445
Detour::CheckFunction((void*)func_CHL2_Player_ExitLadder, "CHL2_Player::ExitLadder");
446+
#endif
441447
}

0 commit comments

Comments
 (0)