Created
April 2, 2024 23:02
-
-
Save dmalinovsky/69fd68af7848008b1cc80a76961f2d77 to your computer and use it in GitHub Desktop.
Patch for KOReader to build logical page count
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local ReaderPageMap = require("apps/reader/modules/readerpagemap") | |
| local postInit_orig = ReaderPageMap._postInit | |
| ReaderPageMap._postInit = function(self) | |
| self.ui.document:buildSyntheticPageMapIfNoneDocumentProvided(1818) | |
| -- Run original code | |
| postInit_orig(self) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist will be superseded by koreader/koreader#14405.