Skip to content

Commit 6d9ac1d

Browse files
Update hook offset and search code for 13.0.1
1 parent 48934b5 commit 6d9ac1d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ lazy_static::lazy_static! {
3535
);
3636
}
3737

38-
static mut FIGHTER_SELECTED_OFFSET: usize = 0x66d500;
38+
// Default 13.0.1 offset
39+
static mut FIGHTER_SELECTED_OFFSET: usize = 0x66e120;
3940

4041
static FIGHTER_SELECTED_SEARCH_CODE: &[u8] = &[
41-
0xfc, 0xdb, 0x45, 0x94,
42+
0x04, 0xdc, 0x45, 0x94,
4243
0xe0, 0x03, 0x1c, 0x32,
4344
0xe1, 0x03, 0x1a, 0x32,
4445
];
@@ -350,7 +351,7 @@ fn search_offsets() {
350351
if let Some(offset) = find_subsequence(text, FIGHTER_SELECTED_SEARCH_CODE) {
351352
FIGHTER_SELECTED_OFFSET = offset;
352353
} else {
353-
println!("Error: no offset found for 'css_fighter_selected'. Defaulting to 13.0.0 offset. This likely won't work.");
354+
println!("Error: no offset found for 'css_fighter_selected'. Defaulting to 13.0.1 offset. This likely won't work.");
354355
}
355356
}
356357
}

0 commit comments

Comments
 (0)