View Single Post
Old 08-17-2020, 05:36 PM   #8
pazos
cosiņeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by Winkelschraube View Post
Does KOReader create a log file with the last loaded file?
logs are written to console on the emulator and to android log buffer on android (you can retrieve them with adb logcat)

Quote:
Originally Posted by Winkelschraube View Post
A suggestion from me would be a script that is executed with every document load.
It doesn't make sense to add hooks everywhere. The program itself is a big hook (it is interpreted). You only need to rewrite the parts of the code you need. In that case the function that's called is https://github.com/koreader/koreader....lua#L537-L585

The scripts there are just for android and made sense because there's no easy way for users to customize the program on that platform.
pazos is offline   Reply With Quote