View Single Post
Old 02-03-2019, 11:38 PM   #275
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,808
Karma: 7423683
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
kobopatch v0.13.0 released with more new instructions for assembly manipulation

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.

Last edited by geek1011; 02-03-2019 at 11:59 PM.
geek1011 is offline   Reply With Quote