Вопрос Autowall CreateTrace

Начинающий
Статус
Оффлайн
Регистрация
18 Ноя 2023
Сообщения
4
Реакции[?]
0
Поинты[?]
0
__forceinline void CreateTrace(trace_data_t* trace, const Vector_t start, const Vector_t end, const trace_filter_t& filler, const int listening_count)
{
usando fncreate_trace = void(__fastcall*)(void*, trace_data_t*, Vector_t, Vector_t, trace_filter_t, int);
static auto ocreate_trace = reinterpret_cast<fncreate_trace>(MEM::FindPattern(CLIENT_DLL, CS_XOR("48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 41 56 41 57 48 83 EC 40 F2")));

if(ocreate_trace!=nullptr)
{
devolver ocreate_trace (esto, seguimiento, inicio, fin, relleno, penetración_count);
}
}

its crashing me, i think the sig is good but now im thinking not is...

Please help me...
 
Начинающий
Статус
Оффлайн
Регистрация
3 Дек 2022
Сообщения
41
Реакции[?]
4
Поинты[?]
4K
This is what im using works perfect :):
 static void CreateTrace(trace_data_t* const trace, const Vector_t start,
        const Vector_t end, const trace_filter_t& filler,
        const int penetration_count) {


        using function_t = void(__fastcall*)(trace_data_t*, Vector_t, Vector_t,
            trace_filter_t, int);
        static function_t fn = reinterpret_cast<function_t>(MEM::FindPattern(CLIENT_DLL, CS_XOR("48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 41 56 41 57 48 83 EC 40 F2")));
        CS_ASSERT(fn != nullptr);
        return fn(trace, start, end, filler, penetration_count);
    }
 
Сверху Снизу