Change hard coded parts
Posted: Wed Jun 18, 2014 10:08 pm
Hello everyone.
I'm a part of a small team, creating a translation to another language.
Translating events and etc is no problem as all this text is kept in xml files from fat archives.
The problem we encountered is translating graphics. Of course it is no problem to redraw the buttons, the problem is the size. Many of translated words are bigger than the English ones. I know, that the sizes of buttons are hard-coded, so I'm trying to patch the executable file. Are there someone, who did this before? Can someone help me finding size bytes. Here is my progress :
Using IDA pro I disassembled the exe. Found parts of the code, responsible for the main menu. Some buttons like quit are coded like this :
https://cloud.mail.ru/public/e0c77e11672c/4.PNG
Here we can see, that first 8 operations form a structure, position of top left corner and size (width and height) of active area. And then the same for the page picture.
But some buttons are declared Ina different way :
https://cloud.mail.ru/public/c6b7aefbb417/2.PNG
So, here I can't understand how it works.
To be perfect, I'd like to see developers answer this question, but I think I it's quiet impossible. Are there anyone who can help me?
I'm a part of a small team, creating a translation to another language.
Translating events and etc is no problem as all this text is kept in xml files from fat archives.
The problem we encountered is translating graphics. Of course it is no problem to redraw the buttons, the problem is the size. Many of translated words are bigger than the English ones. I know, that the sizes of buttons are hard-coded, so I'm trying to patch the executable file. Are there someone, who did this before? Can someone help me finding size bytes. Here is my progress :
Using IDA pro I disassembled the exe. Found parts of the code, responsible for the main menu. Some buttons like quit are coded like this :
https://cloud.mail.ru/public/e0c77e11672c/4.PNG
Here we can see, that first 8 operations form a structure, position of top left corner and size (width and height) of active area. And then the same for the page picture.
But some buttons are declared Ina different way :
https://cloud.mail.ru/public/c6b7aefbb417/2.PNG
So, here I can't understand how it works.
To be perfect, I'd like to see developers answer this question, but I think I it's quiet impossible. Are there anyone who can help me?