diff --git a/kobopatch.yaml b/kobopatch.yaml index 19c34a8..5360466 100644 --- a/kobopatch.yaml +++ b/kobopatch.yaml @@ -1,6 +1,6 @@ ## Sixthhokage1's kobopatch config -version: 4.23.15505 -in: src/kobo-update-4.23.15505.zip +version: 4.23.15548 +in: src/kobo-update-4.23.15548.zip out: out/KoboRoot.tgz log: out/log.txt diff --git a/src/libnickel.so.1.0.0.yaml b/src/libnickel.so.1.0.0.yaml index 351f90d..4da3e16 100644 --- a/src/libnickel.so.1.0.0.yaml +++ b/src/libnickel.so.1.0.0.yaml @@ -317,8 +317,8 @@ Set KePub hyphenation: will always be turned on, regardless of justification button setting. (The publisher can still turn hyphenation off/on in the book's stylesheet.) - - ReplaceBytes: {Offset: 0xB8F15E, FindInstBLX: {SymPLT: "QString::operator==(QLatin1String) const"}, ReplaceH: 01 20 01 20} # Alternative 1: Always turn KePub hyphenation on -# - ReplaceBytes: {Offset: 0xB8F15E, FindInstBLX: {SymPLT: "QString::operator==(QLatin1String) const"}, ReplaceH: 00 20 00 20} # Alternative 2: Never turn KePub hyphenation on + - ReplaceBytes: {Offset: 0xB8FB8E, FindInstBLX: {SymPLT: "QString::operator==(QLatin1String) const"}, ReplaceH: 01 20 01 20} # Alternative 1: Always turn KePub hyphenation on +# - ReplaceBytes: {Offset: 0xB8FB8E, FindInstBLX: {SymPLT: "QString::operator==(QLatin1String) const"}, ReplaceH: 00 20 00 20} # Alternative 2: Never turn KePub hyphenation on Force user line spacing in KePubs: - Enabled: no @@ -534,8 +534,8 @@ Set font scale factor: # Original value X=14, so original scale factor is (font size slider) / 46. # Allowed replacement values for X: 0-15 (smaller X --> larger scale factor) # Note: vmov.f32 s1, #15.0 before getReadingFontSizeScaleFactor - - ReplaceInt: {Offset: 0x586A7C, Find: 14, Replace: 4} # ePub - - ReplaceInt: {Offset: 0xB8ED34, Find: 14, Replace: 4} # KePub + - ReplaceInt: {Offset: 0x5874AC, Find: 14, Replace: 4} # ePub + - ReplaceInt: {Offset: 0xB8F764, Find: 14, Replace: 4} # KePub # The following patch(es) were made by jackie_w Dictionary text font-family/font-size/line-height: @@ -1274,13 +1274,13 @@ Allow rotation on all devices: Unlike only the DeveloperSettings ForceAllowLandscape option, this patch also makes the rotation icon show on the new reader as well. # Always return true for ForceAllowLandscape: - - ReplaceBytes: {Offset: 0x777E4E, FindInstBLX: {SymPLT: "QVariant::toBool() const"}, ReplaceH: 4F F0 01 00} + - ReplaceBytes: {Offset: 0x77887E, FindInstBLX: {SymPLT: "QVariant::toBool() const"}, ReplaceH: 4F F0 01 00} # In ReadingMenuView::ReadingMenuView, replace the value of Device::hasOrientationSensor, # which is passed to a function to hide/show the rotate icon: - - ReplaceBytes: {Offset: 0xBA60FC, FindInstBLX: {SymPLT: "Device::hasOrientationSensor() const"}, ReplaceH: 4F F0 01 00} + - ReplaceBytes: {Offset: 0xBA6B2C, FindInstBLX: {SymPLT: "Device::hasOrientationSensor() const"}, ReplaceH: 4F F0 01 00} # Also fix sizing of popup by doing the same in RotatePopup::RotatePopup, but # note that this will make the Automatic option show too (and do nothing): - - ReplaceBytes: {Offset: 0xBC29BE, FindInstBLX: {SymPLT: "Device::hasOrientationSensor() const"}, ReplaceH: 4F F0 01 00} + - ReplaceBytes: {Offset: 0xBC340E, FindInstBLX: {SymPLT: "Device::hasOrientationSensor() const"}, ReplaceH: 4F F0 01 00} Don't uppercase header/footer text: - Enabled: no @@ -1300,6 +1300,9 @@ Don't uppercase header/footer text: 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"} Custom header/footer page number text: - Enabled: no @@ -1322,6 +1325,7 @@ Don't uppercase header/footer text and change page number text: FindInstBLX: {SymPLT: "QString::toUpper() const"} ReplaceInstBLX: {SymPLT: "QString::trimmed() const"} - FindReplaceString: {Find: "%1 OF %2", Replace: "%1 / %2"} + - FindReplaceString: {Find: "%1% READ", Replace: "%1% read"} Swap reading header/footer: - Enabled: no @@ -1400,7 +1404,7 @@ Customize ComfortLight settings: # In an unnamed subroutine two layers into FrontLightPopupController::loadView # (find it by going back from QTime::addSecs), the times for the dropdown are # generated into a QVector> with a simple loop. - - BaseAddress: 0xAE9B90 # find the base of the unnamed subroutine with the x-ref to _ZN5QTimeC1Eiiii + - BaseAddress: 0xAEA5C0 # find the base of the unnamed subroutine with the x-ref to _ZN5QTimeC1Eiiii # # Change the initial hour / first bedtime dropdown item passed to the QTime # constructor (mov r1, #21): @@ -1475,7 +1479,7 @@ FeatureSettings - ExportHighlights: DeveloperSettings - AutoUsbGadget: - Enabled: no - Description: Automatically enable USB Storage mode when connected. - - ReplaceBytes: {Offset: 0x777EEE, FindInstBLX: {SymPLT: "QVariant::toBool() const"}, ReplaceH: 4F F0 01 00} + - ReplaceBytes: {Offset: 0x77891E, FindInstBLX: {SymPLT: "QVariant::toBool() const"}, ReplaceH: 4F F0 01 00} PowerSettings - UnlockEnabled: - Enabled: no diff --git a/src/nickel.yaml b/src/nickel.yaml index 641c166..9c6daf3 100644 --- a/src/nickel.yaml +++ b/src/nickel.yaml @@ -517,7 +517,7 @@ New home screen subtitle custom font: - Description: | Increase subtitle font size, font color black. Works best when used with with patch `New home screen increasing cover size` - - BaseAddress: 0x14AAB73 # FindZlib: "MetaDataLabel {\n color: #666666;\n qproperty-indent: 0;\n}" + - BaseAddress: 0x14BA095 # FindZlib: "MetaDataLabel {\n color: #666666;\n qproperty-indent: 0;\n}" - ReplaceZlib: {Find: "MetaDataLabel {\n color: #666666;\n qproperty-indent: 0;\n}", Replace: "MetaDataLabel {\n color: #000000;\n qproperty-indent: 0;\n}"} - ReplaceZlib: Find: "MetaDataLabel[qApp_deviceIsTrilogy=true] {\n font-size: 13px;\n}" @@ -532,7 +532,7 @@ New home screen subtitle custom font: Find: "MetaDataLabel[qApp_deviceIsDaylight=true] {\n font-size: 31px;\n}" Replace: "MetaDataLabel[qApp_deviceIsDaylight=true] {\n font-size: 34px;\n}" # duplicate - - BaseAddress: 0x14AF266 + - BaseAddress: 0x14C3975 - ReplaceZlib: {Find: "MetaDataLabel {\n color: #666666;\n qproperty-indent: 0;\n}", Replace: "MetaDataLabel {\n color: #000000;\n qproperty-indent: 0;\n}"} - ReplaceZlib: Find: "MetaDataLabel[qApp_deviceIsTrilogy=true] {\n font-size: 13px;\n}" @@ -590,11 +590,11 @@ Remove forgot pin button from lock screen: Removes the Forgot PIN -> Sign Out button from the lock screen. If this is enabled and you forget your pin, you will need to hard reset your Kobo. - - BaseAddress: 0x14B787C + - BaseAddress: 0x14AE879 - ReplaceZlib: Find: "#lblForgotPin[qApp_deviceIsDragon=true],\n#lblSignOut[qApp_deviceIsDragon=true] {\n font-size: 26px;\n}" Replace: "#lblForgotPin,#lblSignOut{qproperty-visible:false;}" - - BaseAddress: 0x14BB84A + - BaseAddress: 0x14B5543 - ReplaceZlib: Find: "#lblForgotPin[qApp_deviceIsDragon=true],\n#lblSignOut[qApp_deviceIsDragon=true] {\n font-size: 26px;\n}" Replace: "#lblForgotPin,#lblSignOut{qproperty-visible:false;}"