mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-28 15:45:50 +03:00
pefixup: Add timestamps to PE fixup step
Needed for some anti cheats to be happy. Signed-off-by: Joshua Ashton <joshua@froggi.es> Link: https://github.com/ValveSoftware/Proton/pull/4880
This commit is contained in:
parent
0ab213f794
commit
2bcba2b3cd
@ -13,6 +13,8 @@ for path in sys.argv[1:]:
|
||||
section.Characteristics &= ~pefile.SECTION_CHARACTERISTICS['IMAGE_SCN_CNT_INITIALIZED_DATA']
|
||||
section.Characteristics &= ~pefile.SECTION_CHARACTERISTICS['IMAGE_SCN_ALIGN_MASK']
|
||||
|
||||
pe.FILE_HEADER.TimeDateStamp = 1622588288
|
||||
|
||||
pe.OPTIONAL_HEADER.CheckSum = pe.generate_checksum()
|
||||
|
||||
perm = stat.S_IMODE(os.stat(path).st_mode)
|
||||
|
Loading…
Reference in New Issue
Block a user