Created
December 29, 2017 10:54
-
-
Save requinix/9d8feb78de7e2e46f1f7a93a82e89468 to your computer and use it in GitHub Desktop.
TES5Edit: Show file checksums
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
Show file checksums. | |
--- | |
Hotkey: Ctrl+Alt+C | |
} | |
unit ShowFileChecksums; | |
function Initialize: integer; | |
var | |
f, h: string; | |
i: integer; | |
begin | |
for i := 0 to Pred(FileCount) do begin | |
f := GetFileName(FileByIndex(i)); | |
if f = 'Skyrim.Hardcoded.keep.this.with.the.exe.and.otherwise.ignore.it.I.really.mean.it.dat' then begin | |
h := IntToHex(wbCRC32File(ProgramPath + '\\' + f), 8); | |
f := 'Skyrim.exe'; | |
end else | |
h := IntToHex(wbCRC32File(DataPath + '\\' + f), 8); | |
AddMessage(f + ': ' + h); | |
end; | |
Result := 1; | |
end; | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment