sisong / HDiffPatch

a C\C++ library and command-line tools for Diff & Patch between binary files or directories(folder); cross-platform; runs fast; create small delta/differential; support large files and limit memory requires when diff & patch.
Other
1.52k stars 280 forks source link

[Request] View files being patched. dynamic update.[Option] #371

Closed SysVR closed 7 months ago

SysVR commented 8 months ago

1.Display files being patched during the patching process in the patcher.

2.Open all target files from the program (without reading the contents, i.e., lock the files with the patcher to prevent editing), and as soon as the files are generated, move them to the original patch directory.

sisong commented 8 months ago

hpatchz not working with file by file , it see all old files as one large data. so no cur old file, only have cur out file.
hpatchz can't open all old files, because system limited app opened file handles max count.

SysVR commented 8 months ago

Option 1 displays the current output file name. Console Output: Extracting

Option 2, in folder diff mode, currently replaces files only after the generation of all files is complete. The proposed functionality is to replace files in the order they are generated.

: : Extract file1.dat Move file 1.dat to old path Extract file2.dat Move file 2.dat to old path : :

sisong commented 8 months ago

Replace files after all repairs have been finished, which is designed to be a safer rollback when an error.

SysVR commented 8 months ago

thank you.

Currently, there seems to be no other way but to generate multiple patch files to do this.