File Patching?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by skypa.

Hi,

for a good useabillity of my programs i want to write a little Patchengine to release updates with a small filesize.

Any ideas how to code an Filepatcher (offset patching) with PB?

Thanks


skypa
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.
Hi,

for a good useabillity of my programs i want to write a little Patchengine to release updates with a small filesize.

Any ideas how to code an Filepatcher (offset patching) with PB?

Thanks


skypa

I suggest that there are may ways to create a "FilePatcher". If I should create such one, I would create an own "FileType". My app should do the following things:

- Compare Source Data with Destinationdata
- Store only- changes to a file.

Now you have to create the File-Patcher which is able to read your Patch-File and apply these patches to your original one. After patching, there should be a 1:1 copy of your secondary file.

Nice project that you are started there. Wish you fun. :))

Mike

Tranquilizer/ Secretly!
Registred PureBasic User
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by skypa.

[edit]

Im sorry, with ReadByte and WriteByte its soooo easy to build an Filepatcher :)

thx for the tips though

Edited by - skypa on 28 March 2002 17:58:26
Post Reply