This PR introduces the offsets.rs file which dynamically searches the smash binary for the location of functions we want to hook, instead of utilizing a static offset. Static offsets are known to break when the game is updated, whereas the specific instructions are expected to be more stable.
I have not noticed a significant increase in boot time due to this binary searching, so no need to put it behind a feature flag.
This PR introduces the
offsets.rs
file which dynamically searches the smash binary for the location of functions we want to hook, instead of utilizing a static offset. Static offsets are known to break when the game is updated, whereas the specific instructions are expected to be more stable.I have not noticed a significant increase in boot time due to this binary searching, so no need to put it behind a feature flag.