Storm/Draw_Effect.hpp
2024-10-06 22:45:39 +03:00

15 lines
550 B
C++
Executable File

void* Original_Draw_Effect_Caller;
__int8 __thiscall Redirected_Draw_Effect(void* Effect, void* Unknown_Parameter_1, void* Unknown_Parameter_2)
{
using Get_Effect_Name_Type = char*(__thiscall*)(void* a1);
char* Effect_Name = Get_Effect_Name_Type((unsigned __int32)Client_Module + 1423120)((void*)((unsigned __int32)Effect - 8));
if (__builtin_strstr(Effect_Name, "ecloud_") == nullptr)
{
return (decltype(&Redirected_Draw_Effect)(Original_Draw_Effect_Caller))(Effect, Unknown_Parameter_1, Unknown_Parameter_2);
}
return 0;
}