使用上添加的hookpoint函数

This commit is contained in:
anod 2023-03-31 18:24:57 +08:00
parent 82f3bee823
commit feac49d193

View File

@ -445,7 +445,7 @@ static Result loadGbaRom(const char *const path, u32 *const romSizeOut)
acl_open_lib( "gba.acl" );
acl_select_game( gamecode, 0, NULL );
hookpoint_analyzer ha = {read_hookpoint_file, path};
apply_cheat( g_oafConfig.cheatMode, fileSize, NULL, g_oafConfig.cheatKeys, CHEAT_INUSE_ADDR, &fileSize );
apply_cheat( g_oafConfig.cheatMode, fileSize, &ha, g_oafConfig.cheatKeys, CHEAT_INUSE_ADDR, &fileSize );
acl_close_lib();
fini_current_cheat();
}