viewing paste Unknown #7534 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
(horrible names)
struct HPMHookPoint {
    void *func;
    unsigned int pID;
};
struct {
    struct {
        struct HPMHookPoint *HP_battle_check_target_pre;
        struct HPMHookPoint *HP_battle_check_target_post;
    } list;
} HPMHooks;
whatever_function {
    struct HPMHookPoint *a = HPMHooks.list.HP_battle_check_target_pre;
    if( type == HOOK_TYPE_POST ) a = (struct HPMHookPoint *)((char *)a + sizeof(struct HPMHookPoint *));
}
 
Viewed 609 times, submitted by Guest.