Пример #1
0
static void TweaksSearchSignatures(void)
{
    int i;

    nx_sig_search_t *sig = nx_sig_search_create(TweaksSearchCallback);

    for (i = 1; Table_TweakSignatures[i].sig != NULL; i++)
        nx_sig_search_add_signature(sig, i, Table_TweakSignatures[i].sig);

    nx_sig_search_run(sig);
    nx_sig_search_destroy(sig);


    for (i = 1; Table_TweakSignatures[i].sig != NULL; i++) {
        if (*(void **)Table_TweakSignatures[i].ref == NULL)
            nx_log(NX_LOG_NOTICE, 0, "%s (%d) not found", Table_TweakSignatures[i].name, i);
    }
}
Пример #2
0
void nwn_hook_init (void) {
    int i;

    nwn_hook_data();

    nx_sig_search_t *sig = nx_sig_search_create(nwn_hook_callback);

    for (i = 1; nwn_hooks[i].sig != NULL; i++)
        nx_sig_search_add_signature(sig, i, nwn_hooks[i].sig);

    nx_sig_search_run(sig);
    nx_sig_search_destroy(sig);


    for (i = 1; nwn_hooks[i].sig != NULL; i++) {
        if (*(void **)nwn_hooks[i].func == NULL)
            nx_log(NX_LOG_NOTICE, 0, "%s (%d) not found", nwn_hooks[i].name, i);
    }
}