Skip to content

Instantly share code, notes, and snippets.

@requinix
Created December 29, 2017 10:54
Show Gist options
  • Save requinix/9d8feb78de7e2e46f1f7a93a82e89468 to your computer and use it in GitHub Desktop.
Save requinix/9d8feb78de7e2e46f1f7a93a82e89468 to your computer and use it in GitHub Desktop.
TES5Edit: Show file checksums
{
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