Storm/Draw_Effect.hpp

15 lines
550 B
C++
Raw Normal View History

2024-04-04 03:17:09 +08:00
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);
2024-10-07 03:45:39 +08:00
char* Effect_Name = Get_Effect_Name_Type((unsigned __int32)Client_Module + 1423120)((void*)((unsigned __int32)Effect - 8));
2024-04-04 03:17:09 +08:00
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;
}