Storm/Draw_Effect.hpp

13 lines
519 B
C++
Raw Permalink Normal View History

2024-04-03 22:17:09 +03:00
void* Original_Draw_Effect_Caller;
__int8 __thiscall Redirected_Draw_Effect(void* Effect, void* Unknown_Parameter_1, void* Unknown_Parameter_2)
{
2025-04-13 02:12:55 +03:00
using Get_Effect_Name_Type = char*(__thiscall*)(void* Effect);
2024-04-03 22:17:09 +03:00
2025-04-13 02:12:55 +03:00
if (__builtin_strstr(Get_Effect_Name_Type((unsigned __int32)Client_Module + 1423120)((void*)((unsigned __int32)Effect - 8)), "ecloud_ca") == nullptr)
2024-04-03 22:17:09 +03:00
{
return (decltype(&Redirected_Draw_Effect)(Original_Draw_Effect_Caller))(Effect, Unknown_Parameter_1, Unknown_Parameter_2);
}
return 0;
}