1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-16 03:16:12 +00:00

Fix Offset for GET_BATTLE_OBJECT_FROM_ID

This commit is contained in:
GradualSyrup 2024-02-16 09:43:36 -06:00
parent c4bcebb17b
commit 3b2fa785b6

View file

@ -52,17 +52,16 @@ macro_rules! impl_offset {
//
// Recommended to use the first 8 instructions (32 bytes), unless the function is shorter
// OFFSET_GET_BATTLE_OBJECT_FROM_ID = 0x3ac540
// TODO: This is wrong, its giving same offset as SET_CPU_CONTROLS 0x2da180
// OFFSET_GET_BATTLE_OBJECT_FROM_ID = 0x3ac560
static NEEDLE_GET_BATTLE_OBJECT_FROM_ID: &[u8] = &[
0xff, 0x03, 0x06, 0xd1,
0xee, 0x73, 0x00, 0xfd,
0xed, 0x33, 0x0f, 0x6d,
0xeb, 0x2b, 0x10, 0x6d,
0xe9, 0x23, 0x11, 0x6d,
0xfc, 0x6f, 0x12, 0xa9,
0xfa, 0x67, 0x13, 0xa9,
0xf8, 0x5f, 0x14, 0xa9,
0x08, 0x7c, 0x1c, 0x53,
0x1f, 0x11, 0x00, 0x71,
0x68, 0x07, 0x00, 0x54,
0x49, 0x08, 0x02, 0xf0,
0x29, 0xd1, 0x07, 0x91,
0x28, 0x79, 0xa8, 0xb8,
0x08, 0x01, 0x09, 0x8b,
0x00, 0x01, 0x1f, 0xd6,
];
impl_offset!(GET_BATTLE_OBJECT_FROM_ID);