View Single Post
Old 12-11-2025, 03:35 PM   #16
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 8,060
Karma: 71355703
Join Date: Feb 2009
Device: Kobo Clara 2E
I need some help with the patches please. I'm trying to set the "My 10 line spacing values" by modying src\libnickel.so.1.0.0.yaml. But they don't seem to be applied.

Attached is the log. The thing that stands out to me in the log is:

Code:
        applying overrides
            override My 10 line spacing values -> enabled:false
but this is what I have in libnickel.so.1.0.0.yaml.

Code:
My 10 line spacing values:
  - Enabled: yes
  - PatchGroup: Line spacing values alternatives
  - Description: |
      This patch changes the values on the line spacing adjustment slider,
      reducing the number of spacing options from 15 to 10, but allowing
      much narrower spacing values to be set.
    # Bypass code-constructed values 1.0, 1.2, 1.5, 2.0, 3.0
    # These are all the appends not loaded using adr.
  - BaseAddress:  {Sym: "ReadingSettings::lineHeightScalars() const", Rel: 84} # first append
  - ReplaceBytes: {Offset:   0, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
  - ReplaceBytes: {Offset:  86, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
  - ReplaceBytes: {Offset: 128, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
  - ReplaceBytes: {Offset: 188, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
  - ReplaceBytes: {Offset: 290, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
    # 10 values for replacement, change these replace_float values to suit:
    # Find the prologue for the values + first subtraction (has been unique in
    # every version so far, and is near impossible to change and fail silently):
  - FindBaseAddressHex: CDCC CCCC CCCC F03F 1F85
  - ReplaceFloat: {Offset: 0x00,  Find: 1.05, Replace: 0.8}
  - ReplaceFloat: {Offset: 0x08,  Find: 1.07, Replace: 0.85}
  - ReplaceFloat: {Offset: 0x10,  Find: 1.1,  Replace: 0.875}
  - ReplaceFloat: {Offset: 0x18,  Find: 1.35, Replace: 0.9}
  - ReplaceFloat: {Offset: 0x20,  Find: 1.7,  Replace: 0.925}
  - ReplaceFloat: {Offset: 0x28,  Find: 1.8,  Replace: 0.95}
  - ReplaceFloat: {Offset: 0x30,  Find: 2.2,  Replace: 0.975}
  - ReplaceFloat: {Offset: 0x38,  Find: 2.4,  Replace: 1.0}
  - ReplaceFloat: {Offset: 0x40,  Find: 2.6,  Replace: 1.05}
  - ReplaceFloat: {Offset: 0x48,  Find: 2.8,  Replace: 1.1}
I haven't done any patching in a long time, so not sure what is going on.

Thank you for the help.
Attached Files
File Type: txt log.txt (191.4 KB, 6 views)
John F is offline   Reply With Quote