i'm working in a very stupid idea.
tgen.exe generate a file with random bytes and with entropy.
so the idea is tgen.exe generate a similar file with 80 or 90% of the original game file, and then apply xdelta.
example:
original game file: 10mb
so tgen generate : 10mb
and then compare the original with tgen file with xdelta and generate the patch.
yeah is very stupid idea, but if some program can create from nothing a file with 80 or 90 % of the original file and then we can patch the tgen with xdelta file would be amazing.
original game file: 10mb
so tgen generate : 10mb
patch file: 50kb
so imagine a entire game file compressed in 100 mb patched.
PD: ok and now i go to sleep.