Thread: JBPatch
View Single Post
Old 02-19-2014, 05:28 PM   #1647
phoenix512
Enthusiast
phoenix512 began at the beginning.
 
phoenix512's Avatar
 
Posts: 45
Karma: 10
Join Date: Feb 2014
Device: kindle PW2
Quote:
Originally Posted by kaznelson View Post
zxczxc

JBE 0.1.1 - Java Bytecode Editor

ReaderSDK-impl-ln_LN.jar -> ReaderResources_-ln_LN.class -> Open in JBE

Methods -> <init> -> [0] Code -> Code Editor tab

For PW/PW2 edit values:

font.contrast.value.list : bipush 254 > sipush 254
font.wordsperline.margin.list [fewest] : 150 > 30
font.wordsperline.margin.list [fewer] : 100 > 20
font.wordsperline.margin.list [default] : 50 > 10
reader.content.leftMargin : 50 > 11
reader.content.rightMargin : 50 > 11
reader.content.topMargin : 40 > 12
reader.content.bottomMargin : 40 > 18
reader.progressbar.height : 25 > 18
reader.progressbar.footer.height : 40 > 18
reader.progressbar.margin : 40 > 18
reader.content.yMargin : 20 > 18
I'm trying to change margin by changing the jar file that you provided using Java Bytecode Editor. I have two problems
1. what parameters should change and how exactly? for example, this is from jar file:
**ldc_w "reader.content.leftMargin"
aastore
dup
iconst_1
new java/lang/Integer
dup
bipush 10
invokespecial java/lang/Integer/<init>(I)V
aastore
aastore
dup
bipush 44
iconst_2
anewarray java/lang/Object
iconst_1
dup
pop2
dup
iconst_0***
Am I supposed to change bipush? Also, there is another same code repeated in another part of the jar fie. Just copied the whole text into a texteditor

2. I can't save my changes anyway! it says "The system cannot find the path specified"
Please help
phoenix512 is offline   Reply With Quote