Posts: 31
Threads: 9
Joined: Aug 2011
Reputation:
0
Hello, so I need to apply a diff file to another file, the application should read the diff file and apply it, I just don't know how. Just like a regular file patcher, but instead of downloading the file, it just changes the original to the newer version.
Thanks in advance
Posts: 31
Threads: 9
Joined: Aug 2011
Reputation:
0
A simple patcher is easy... What I want to do is an application that gets which files are different, reads the diff file for each one and applies it to the client files. This would avoid downloading a 1 MB file just because I changed a variable for example.
Posts: 1,006
Threads: 111
Joined: Jul 2010
Reputation:
1
Ah, so you want to actually get into the binary code and change it to what the new version should be? If so, I don't really think this is possible due to the fact that executables are compiled, and the source code is not directly editable.
Posts: 31
Threads: 9
Joined: Aug 2011
Reputation:
0
That's why I need to edit it like an Hexadecimal editor, I read the offset and the new value from a file in a webserver and edit the file in the client's PC.
Posts: 31
Threads: 9
Joined: Aug 2011
Reputation:
0
I'll try it. Thank you, like always, you have the answer!
Posts: 1,006
Threads: 111
Joined: Jul 2010
Reputation:
1
Heh, Well I'm here to help! Please report back with your findings!
Posts: 31
Threads: 9
Joined: Aug 2011
Reputation:
0
Well, fortunately the patcher won't need to change files this way, so I'll do it in the "normal" way, thanks though. Btw, I have a new question, please check the new topics