The patchers existents like Thor is good, and have encrypt, but I make some modifications.
I fail in repack the files grf e.e
What I make was a program in java where read files in a folder and generate a list with yours bytes lenght and patch, My patcher current check files and if have modifications it update the file, and have a validation if be update files have different bytes. For exemple, options ingame it don't update, just download if not exist.
A motive for I try make an autopatcher is also to learning mor about c++. The problem with my autopatcher is the size in disk, because it dont is packed by grf :/ but I can try somethings to resolve this if I learning use libgrf.
The problem wich I have in the moment with libgrf is the repack, I don't know what put in ONE PARAM T.T
I don't know what put in helperBuffer I try this, but dont work, this should be dates of the file I think, the lib show in doc: @param data Pointer to the file data.
repacked is grf file, line the filepath, lenght bytes of the file, the flat and &err Grferror, this method return who files was put in grf (is odd because is just one file at a time).
Sorry my english e.e I'm a noob HAUSHASUSAH