forked from Popn_Tools/popnhax
wip
This commit is contained in:
parent
7f146dc5e9
commit
4761082536
@ -236,7 +236,7 @@ void hook_categ_listing()
|
||||
__asm("jne categ_listing_ok\n");
|
||||
__asm("cmp byte ptr ds:[_g_subcategmode], 1\n");
|
||||
__asm("jne skip_push\n");
|
||||
__asm("push esi\n"); //push esi to prepare for subcategory mode (categ_inject_songlist points to the correct function)
|
||||
__asm("push esi\n"); //push esi to prepare for subcategory mode (categ_inject_songlist always points to the correct function)
|
||||
__asm("skip_push:\n");
|
||||
__asm("call [_categ_inject_songlist]\n"); //
|
||||
__asm("categ_listing_ok:\n");
|
||||
@ -284,6 +284,9 @@ static bool patch_custom_categ_simple(const char *game_dll_fn) {
|
||||
reimpl_func_3 = (void (*)())( *((uint32_t*)(function_addr +0xBC)) + (uint32_t)(function_addr +0x04 +0xBC) );
|
||||
reimpl_func_4 = (void (*)())( *((uint32_t*)(function_addr +0xD1)) + (uint32_t)(function_addr +0x04 +0xD1) );
|
||||
|
||||
get_subcateg_size = (void (*)())( *((uint32_t*)(function_addr +0x36)) + (uint32_t)(function_addr +0x04 +0x36) );
|
||||
get_subcateg_name = (void (*)())( *((uint32_t*)(function_addr +0x62)) + (uint32_t)(function_addr +0x04 +0x62) );
|
||||
|
||||
MH_CreateHook((LPVOID)patch_addr, (LPVOID)hook_categ_listing,
|
||||
(void **)&real_categ_listing);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user