Skip to content

Commit

Permalink
Fix Offset for GET_BATTLE_OBJECT_FROM_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
GradualSyrup committed Feb 16, 2024
1 parent c4bcebb commit 3b2fa78
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/common/offsets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3b2fa78

Please sign in to comment.