I have
released a new version of kobopatch (along with
patches v40) with some new assembly manipulation instructions.
The new features in this release are:
-
New FindBaseAddressSymbol instruction: This finds the base address of a function. Use the demangled c++ symbol name (or the c symbol name). The advantage of this instruction is offsets of functions using this instruction do not have to be recalculated every firmware version.
-
New ReplaceBytesAtSymbol instruction: This instruction combines FindBaseAddressSymbol and ReplaceBytes.
Examples:
Code:
# Making a setting always true (offset 53 is the toBool function call inside the setting getter).
# This example uses all the new assembly manipulation instructions from the last two versions to reduce the number of offsets to update every version from 3 to 1.
- ReplaceBytesAtSymbol: {Symbol: "ApplicationSettings::readABookShown()", Offset: 53, FindBLX: 0x40491c, ReplaceH: 4F F0 01 00}
And other ones coming soon once I update them.