View Single Post
Old 11-11-2018, 07:34 PM   #83
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,788
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Patches v28 with new "Replace adobe page numbers toggle with invert screen" patch

I have released patches v28 with a new "Replace adobe page numbers toggle with invert screen" patch by me.

This patch replaces the "Adobe EPUB page numbers" setting in "Reading settings" with a "Invert screen".

Spoiler:
Code:
Replace adobe page numbers toggle with invert screen:
  - Enabled: no
  - Description: |
      Replaces the adobe page numbers toggle in reading settings with an invert
      screen one.
  # Note: https://gist.githubusercontent.com/jeremy-allen-cs/c93bd333b5b585c2b840/raw/772efa2851189d1fd0fd41a2dfd95b688bd7d96e/arm_blx_encode.py is useful when changing these instructions.
  # in a subroutine of N3SettingsReadingView::setupUi(Widget) (found backwards from FeatureSettings::getShowAdobePageNumbers()):
  # change ReadingSettings::getShowAdobePageNumbers() to FeatureSettings::invertScreen()
  - ReplaceBytes: {Offset: 0x84AD58, FindH: C7 F7 A0 E6, ReplaceH: D3 F7 DE E1}
  # in N3SettingsReadingController::showAdobePageNumbersToggled():
  # change ReadingSettings::getShowAdobePageNumbers() to FeatureSettings::invertScreen()
  - ReplaceBytes: {Offset: 0x849396, FindH: C9 F7 82 E3, ReplaceH: D4 F7 C0 E6}
  # and ReadingSettings::setShowAdobePageNumbers(bool) to FeatureSettings::setInvertScreen(bool)
  - ReplaceBytes: {Offset: 0x8493A2, FindH: CE F7 E2 E4, ReplaceH: D4 F7 EA E2}
  # then change the text in the settings page
  - FindReplaceString: {Find: "Show Adobe EPUB page numbers", Replace: "Invert screen"}


On a side note, if anyone wants to see my kobopatch configuration, it is here: https://github.com/geek1011/kobopatch-config

Last edited by geek1011; 11-11-2018 at 07:45 PM.
geek1011 is offline   Reply With Quote