View Single Post
Old 07-28-2024, 03:00 PM   #146
hatuluang
Teluk Biru
hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.
 
hatuluang's Avatar
 
Posts: 154
Karma: 348662
Join Date: Jan 2023
Device: Kobo Clara 2E
Quote:
Originally Posted by bluepeter View Post
Thanks very much.

I guess I must be doing something wrong with it, 'cos I get this in my log:

--> could not apply patch "Don't uppercase header/footer text": line 1220: inst 4: ReplaceBytes: could not find specified bytes
Change the offset from 282 to 298

Code:
Don't uppercase header/footer text:
  - Enabled: no
  - Description: Prevents the text in the reader header/footer from being uppercased.
  - PatchGroup: Header/footer page number text
  # Replace QString::toUpper call with QString::trimmed (to copy the string, and
  # not need to add a mov instruction and NOP the destructor):
  - ReplaceBytes:
      Base:            "ReadingView::getChapterTitle()"
      Offset:          298
      FindInstBLX:     {SymPLT: "QString::toUpper() const"}
      ReplaceInstBLX:  {SymPLT: "QString::trimmed() const"}
  - ReplaceBytes:
      Base:            "ReadingView::updateFooter()"
      Offset:          26
      FindInstBLX:     {SymPLT: "QString::toUpper() const"}
      ReplaceInstBLX:  {SymPLT: "QString::trimmed() const"}
  # Page number text:
  - FindReplaceString: {Find: "%1 OF %2", Replace: "%1 of %2"}
  # Percent read text (this string is only used by ReadingView::getChapterPercentProgressText,
  # and the home screen one is already lowercase):
  - FindReplaceString: {Find: "%1% READ", Replace: "%1% read"}
ref: https://www.mobileread.com/forums/sh...&postcount=107

Last edited by hatuluang; 07-28-2024 at 04:09 PM.
hatuluang is offline   Reply With Quote