Quote:
Originally Posted by bluepeter
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