View Single Post
Old 07-28-2018, 10:35 AM   #1
Derf
Zealot
Derf ought to be getting tired of karma fortunes by now.Derf ought to be getting tired of karma fortunes by now.Derf ought to be getting tired of karma fortunes by now.Derf ought to be getting tired of karma fortunes by now.Derf ought to be getting tired of karma fortunes by now.Derf ought to be getting tired of karma fortunes by now.Derf ought to be getting tired of karma fortunes by now.Derf ought to be getting tired of karma fortunes by now.Derf ought to be getting tired of karma fortunes by now.Derf ought to be getting tired of karma fortunes by now.Derf ought to be getting tired of karma fortunes by now.
 
Derf's Avatar
 
Posts: 104
Karma: 1173714
Join Date: Jul 2018
Location: Puerto Rico
Device: Kobo Clara HD, Kindle PW Signature 12th ed, B&N Nook GL4+
Customizing the custom sleep timeout settings patch

I was wondering if I could customize the custom sleep settings patch, for my own needs. Not being a computer coder, I thought I'd ask here first.

The current patch looks like this
Spoiler:

<Patch>
patch_name = `Custom Sleep/Power-off timeouts`
patch_enable = `no`
#
## Changes the Sleep/Power-off timeout menu options from 5,10,15,30,45,60
## minutes to 10,20,30,60,120,240 minutes.
#
# Values displayed on both menus
replace_string = CEACA0, `5 mins\0`, `10 mins`
replace_string = CEACA8, `10 mins`, `20 mins`
replace_string = CEACB0, `15 mins`, `30 mins`
replace_string = CEACB8, `30 mins`, `1 hour`
replace_string = CEACC0, `45 mins`, `2 hours`
replace_string = CEACC8, `60 mins`, `4 hours`
# Actual values used for sleep menu
replace_int = A6F298, 5, 10
replace_int = A6F2E2, 10, 20
replace_int = A6F326, 15, 30
replace_int = A6F36A, 30, 60
replace_int = A6F3AE, 45, 120
replace_int = A6F3F2, 60, 240
# Actual values used for power menu
replace_int = A6F4A6, 5, 10
replace_int = A6F4E8, 10, 20
replace_int = A6F528, 15, 30
replace_int = A6F568, 30, 60
replace_int = A6F5A8, 45, 120
replace_int = A6F5E6, 60, 240
</Patch>


I'd want to change it to this
Spoiler:

<Patch>
patch_name = `Custom Sleep/Power-off timeouts`
patch_enable = `no`
#
## Changes the Sleep/Power-off timeout menu options from 5,10,15,30,45,60
## minutes to 5,10,15,30,60,120 minutes.
#
# Values displayed on both menus
replace_string = CEACA0, `5 mins\0`, `5 mins`
replace_string = CEACA8, `10 mins`, `10 mins`
replace_string = CEACB0, `15 mins`, `15 mins`
replace_string = CEACB8, `30 mins`, `30 mins`
replace_string = CEACC0, `45 mins`, `1 hour`
replace_string = CEACC8, `60 mins`, `2 hours`
# Actual values used for sleep menu
replace_int = A6F298, 5, 5
replace_int = A6F2E2, 10, 10
replace_int = A6F326, 15, 15
replace_int = A6F36A, 30, 30
replace_int = A6F3AE, 45, 60
replace_int = A6F3F2, 60, 120
# Actual values used for power menu
replace_int = A6F4A6, 5, 5
replace_int = A6F4E8, 10, 10
replace_int = A6F528, 15, 15
replace_int = A6F568, 30, 30
replace_int = A6F5A8, 45, 60
replace_int = A6F5E6, 60, 120
</Patch>
Derf is offline   Reply With Quote