View Single Post
Old 12-05-2020, 07:06 PM   #7
mxbndr
Grateful Plebe
mxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavensmxbndr is a rising star in the heavens
 
Posts: 39
Karma: 13638
Join Date: Dec 2012
Device: Kindle 3, Kobo Libra H2O
This part seems really useful, but I struggled to understand it and my trial and error hasn't borne fruit:

Quote:
## Change Browse Kobo home screen link target ###
# This patch allows you to change the target of the Browse Kobo link. To
# rename the top description, use the rename home screen footer patch.
#
# The easy options for this patch are fairly limited, as BrowseKoboWidget::tapped
# just calls the superclass event, then the call to DiscoverNavMixin::storeFront
# in the PLT is tail-call optimized. This places a number of restrictions on the
# replacement target, namely: the branch must be a branch and exchange, but not
# link (lr must be unchanged to return correctly), which is implemented as a
# 32-bit branch to a bx pc (nop branch, but still switch instruction sets)
# immediately before a PLT entry to a nav mixin without any arguments (i.e.
# must be static). Note that the first branch is relative to pc. Also, note that
# in general, this requirement means anything called by StatusBarController (the
# menu) can be used as a replacement.
#
# Basically, the following two steps are needed:
# - In BrowseKoboWidget::tapped, change the tail-call to the bx before
# [something]NavMixin::[something] in the PLT.
# - In the BrowseKoboWidget constructor, change which function is called to get
# the bottom text (Shop Kobo) from N3DeviceCharm::shopName (Shop Kobo / Walmart)
# to N3DeviceCharm::[something] (note that there isn't enough room to
# load an entirely different string here).
Can someone give an example? For instance, making a link target the device library, or OverDrive?

Quote:
You may also like the SmartLink customization patches and NickelMenu.
What does SmartLink do? My understanding is that it forces a message to display at the bottom of the homescreen. This is achieved by uncommenting the line in the libnickel.so.1.0.0.yaml? Which is presumably customizable?
mxbndr is offline   Reply With Quote