View Single Post
Old 05-12-2016, 06:07 PM   #222
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
A further adaption of pipcat's ideas.
The only meaningful test I did on the Touch was to disable all games.

Spoiler:
for libnickel.so.1.0.0.txt:
Code:
<patch>
name=Show second page of Beta Features for Glo HD
note=Idea by pipcat
note=cf. https://www.mobileread.com/forums/showthread.php?t=274027
if $glohd
  enabled=true
else
  enabled=false
end
action=replace_string
position=986010
olddata=\x00
newdata=\x01
</patch>

<patch>
name=Show scramble game for all locales
note=Idea by pipcat
note=cf. https://www.mobileread.com/forums/showpost.php?p=3316269&postcount=6
enabled=true
action=replace_string
position=985FC6
olddata=\x3E\xD0
newdata=\x00\x90
</patch>
for nickle.txt
Code:
<patch>
name=enable games 4A1388(3.19.5761)
note=you must not use this patch together with "disable games"
note=idea by pipcat
note=cf. https://www.mobileread.com/forums/showthread.php?t=274027
enabled=true
action=replace_zlib
position=autodetect
oldpart=#spacerWidget[qApp_deviceIsTrilogy="true"],\n#description[qApp_deviceIsTrilogy="true"] {\n  padding-right: 12px;\n}\n
oldpart=#spacerWidget[qApp_deviceIsPhoenix="true"],\n#description[qApp_deviceIsPhoenix="true"] {\n  padding-right: 15px;\n}\n
oldpart=#spacerWidget[qApp_deviceIsDragon="true"],\n#description[qApp_deviceIsDragon="true"] {\n  padding-right: 20px;\n}\n
oldpart=#spacerWidget[qApp_deviceIsPika="true"],\n#description[qApp_deviceIsPika="true"] {\n  qproperty-visible: false;\n}\n
oldpart=#spacerWidget[qApp_deviceIsAlyssum="true"],\n#description[qApp_deviceIsAlyssum="true"] {\n  qproperty-visible: false;\n}\n
oldpart=#boggleContainer,\n#solitaireContainer,\n#rushHourContainer,\n#sudokuContainer,\n#sketchPadContainer {\n  qproperty-bottomMargin: 10;\n}\n
oldpart=#boggleContainer[qApp_deviceIsPika="true"],\n#solitaireContainer[qApp_deviceIsPika="true"],\n#rushHourContainer[qApp_deviceIsPika="true"],\n#sudokuContainer[qApp_deviceIsPika="true"],\n#sketchPadContainer[qApp_deviceIsPika="true"] {\n  qproperty-visible: false;\n}\n
oldpart=#boggleContainer[qApp_deviceIsAlyssum="true"],\n#solitaireContainer[qApp_deviceIsAlyssum="true"],\n#rushHourContainer[qApp_deviceIsAlyssum="true"],\n#sudokuContainer[qApp_deviceIsAlyssum="true"],\n#sketchPadContainer[qApp_deviceIsAlyssum="true"] {\n  qproperty-visible: false;\n}\n
oldpart=#boggleDescription[qApp_deviceIsTrilogy="true"],\n#solitaireDescription[qApp_deviceIsTrilogy="true"],\n#rushHourDescription[qApp_deviceIsTrilogy="true"],\n#browserDescription[qApp_deviceIsTrilogy="true"],\n#sudokuDescription[qApp_deviceIsTrilogy="true"],\n#scribbleDescription[qApp_deviceIsTrilogy="true"] {\n  padding-top: 12px;\n  padding-bottom: 12px;\n}\n
oldpart=#boggleDescription[qApp_deviceIsPhoenix="true"],\n#solitaireDescription[qApp_deviceIsPhoenix="true"],\n#rushHourDescription[qApp_deviceIsPhoenix="true"],\n#browserDescription[qApp_deviceIsPhoenix="true"],\n#sudokuDescription[qApp_deviceIsPhoenix="true"],\n#scribbleDescription[qApp_deviceIsPhoenix="true"] {\n  padding-top: 15px;\n  padding-bottom: 15px;\n}\n
oldpart=#boggleDescription[qApp_deviceIsDragon="true"],\n#solitaireDescription[qApp_deviceIsDragon="true"],\n#rushHourDescription[qApp_deviceIsDragon="true"],\n#browserDescription[qApp_deviceIsDragon="true"],\n#sudokuDescription[qApp_deviceIsDragon="true"],\n#scribbleDescription[qApp_deviceIsDragon="true"] {\n  padding-top: 20px;\n  padding-bottom: 20px;\n}\n

if $aurahd or $h2o or $glo or $aura or $glohd
    newpart=#spacerWidget[qApp_deviceIsDragon="true"],\n#description[qApp_deviceIsDragon="true"] {\n  padding-right: 20px;\n}\n
    newpart=#spacerWidget[qApp_deviceIsPhoenix="true"],\n#description[qApp_deviceIsPhoenix="true"] {\n  padding-right: 15px;\n}\n
    newpart=#spacerWidget[qApp_deviceIsAlyssum="true"],\n#description[qApp_deviceIsAlyssum="true"]  {\n  padding-right: 25px;\n}\n
else
    newpart=#spacerWidget[qApp_deviceIsTrilogy="true"],\n#description[qApp_deviceIsTrilogy="true"] {\n  padding-right: 12px;\n}\n
    newpart=#spacerWidget[qApp_deviceIsPika="true"],\n#description[qApp_deviceIsPika="true"] {\n  padding-right: 12px;\n}\n
end
newpart=#boggleContainer,\n#solitaireContainer,\n#rushHourContainer,\n#sudokuContainer,\n#sketchPadContainer {\n  qproperty-bottomMargin: 10;\n}\n
newpart=#boggleDescription[qApp_deviceIsDragon="true"],\n#solitaireDescription[qApp_deviceIsDragon="true"],\n#rushHourDescription[qApp_deviceIsDragon="true"],\n#browserDescription[qApp_deviceIsDragon="true"],\n#sudokuDescription[qApp_deviceIsDragon="true"],\n#scribbleDescription[qApp_deviceIsDragon="true"] {\n  padding-top: 20px;\n  padding-bottom: 20px;\n}\n
newpart=#boggleDescription[qApp_deviceIsPhoenix="true"],\n#solitaireDescription[qApp_deviceIsPhoenix="true"],\n#rushHourDescription[qApp_deviceIsPhoenix="true"],\n#browserDescription[qApp_deviceIsPhoenix="true"],\n#sudokuDescription[qApp_deviceIsPhoenix="true"],\n#scribbleDescription[qApp_deviceIsPhoenix="true"] {\n  padding-top: 15px;\n  padding-bottom: 15px;\n}\n
if $glohd
    newpart=#boggleDescription[qApp_deviceIsAlyssum="true"],\n#solitaireDescription[qApp_deviceIsAlyssum="true"],\n#rushHourDescription[qApp_deviceIsAlyssum="true"],\n#browserDescription[qApp_deviceIsAlyssum="true"],\n#sudokuDescription[qApp_deviceIsAlyssum="true"],\n#scribbleDescription[qApp_deviceIsAlyssum="true"] {\n  padding-top: 25px;\n  padding-bottom: 25px;\n}\n
else
    newpart=#boggleContainer[qApp_deviceIsPika="true"],\n#solitaireContainer[qApp_deviceIsPika="true"],\n#rushHourContainer[qApp_deviceIsPika="true"],\n#sudokuContainer[qApp_deviceIsPika="true"],\n#sketchPadContainer[qApp_deviceIsPika="true"] {\n  padding-top: 12px;\n  padding-bottom: 12px;\n}\n
    newpart=#boggleDescription[qApp_deviceIsTrilogy="true"],\n#solitaireDescription[qApp_deviceIsTrilogy="true"],\n#rushHourDescription[qApp_deviceIsTrilogy="true"],\n#browserDescription[qApp_deviceIsTrilogy="true"],\n#sudokuDescription[qApp_deviceIsTrilogy="true"],\n#scribbleDescription[qApp_deviceIsTrilogy="true"] {\n  padding-top: 12px;\n  padding-bottom: 12px;\n}\n
end
combineparts
</patch>



// -------------------------------------------------- disable games
<patch>
name=disable games on all devices 4A1388(3.19.5761)
note=you must not use this patch together with "enable games"
enabled=false
action=replace_zlib
position=autodetect
oldpart=#spacerWidget[qApp_deviceIsTrilogy="true"],\n#description[qApp_deviceIsTrilogy="true"] {\n  padding-right: 12px;\n}\n
oldpart=#spacerWidget[qApp_deviceIsPhoenix="true"],\n#description[qApp_deviceIsPhoenix="true"] {\n  padding-right: 15px;\n}\n
oldpart=#spacerWidget[qApp_deviceIsDragon="true"],\n#description[qApp_deviceIsDragon="true"] {\n  padding-right: 20px;\n}\n
oldpart=#spacerWidget[qApp_deviceIsPika="true"],\n#description[qApp_deviceIsPika="true"] {\n  qproperty-visible: false;\n}\n
oldpart=#spacerWidget[qApp_deviceIsAlyssum="true"],\n#description[qApp_deviceIsAlyssum="true"] {\n  qproperty-visible: false;\n}\n
oldpart=#boggleContainer,\n#solitaireContainer,\n#rushHourContainer,\n#sudokuContainer,\n#sketchPadContainer {\n  qproperty-bottomMargin: 10;\n}\n
oldpart=#boggleContainer[qApp_deviceIsPika="true"],\n#solitaireContainer[qApp_deviceIsPika="true"],\n#rushHourContainer[qApp_deviceIsPika="true"],\n#sudokuContainer[qApp_deviceIsPika="true"],\n#sketchPadContainer[qApp_deviceIsPika="true"] {\n  qproperty-visible: false;\n}\n
oldpart=#boggleContainer[qApp_deviceIsAlyssum="true"],\n#solitaireContainer[qApp_deviceIsAlyssum="true"],\n#rushHourContainer[qApp_deviceIsAlyssum="true"],\n#sudokuContainer[qApp_deviceIsAlyssum="true"],\n#sketchPadContainer[qApp_deviceIsAlyssum="true"] {\n  qproperty-visible: false;\n}\n
oldpart=#boggleDescription[qApp_deviceIsTrilogy="true"],\n#solitaireDescription[qApp_deviceIsTrilogy="true"],\n#rushHourDescription[qApp_deviceIsTrilogy="true"],\n#browserDescription[qApp_deviceIsTrilogy="true"],\n#sudokuDescription[qApp_deviceIsTrilogy="true"],\n#scribbleDescription[qApp_deviceIsTrilogy="true"] {\n  padding-top: 12px;\n  padding-bottom: 12px;\n}\n
oldpart=#boggleDescription[qApp_deviceIsPhoenix="true"],\n#solitaireDescription[qApp_deviceIsPhoenix="true"],\n#rushHourDescription[qApp_deviceIsPhoenix="true"],\n#browserDescription[qApp_deviceIsPhoenix="true"],\n#sudokuDescription[qApp_deviceIsPhoenix="true"],\n#scribbleDescription[qApp_deviceIsPhoenix="true"] {\n  padding-top: 15px;\n  padding-bottom: 15px;\n}\n
oldpart=#boggleDescription[qApp_deviceIsDragon="true"],\n#solitaireDescription[qApp_deviceIsDragon="true"],\n#rushHourDescription[qApp_deviceIsDragon="true"],\n#browserDescription[qApp_deviceIsDragon="true"],\n#sudokuDescription[qApp_deviceIsDragon="true"],\n#scribbleDescription[qApp_deviceIsDragon="true"] {\n  padding-top: 20px;\n  padding-bottom: 20px;\n}\n

newpart=#spacerWidget,\n#description {\n  qproperty-visible: false;\n}\n
newpart=#boggleContainer,\n#solitaireContainer,\n#rushHourContainer,\n#sudokuContainer {\n  qproperty-visible: false;\n}\n
newpart=#sketchPadContainer {\n  qproperty-bottomMargin: 10;\n}\n
newpart=#browserDescription[qApp_deviceIsTrilogy="true"] {\n  padding-top: 12px;\n  padding-bottom: 12px;\n}\n
newpart=#browserDescription[qApp_deviceIsPhoenix="true"] {\n  padding-top: 15px;\n  padding-bottom: 15px;\n}\n
newpart=#browserDescription[qApp_deviceIsDragon="true"] {\n  padding-top: 20px;\n  padding-bottom: 20px;\n}\n

combineparts
</patch>
Attached Files
File Type: zip KBPatcher14_3.19.5761_games.zip (477.0 KB, 211 views)

Last edited by tshering; 05-13-2016 at 03:35 AM.
tshering is offline   Reply With Quote