diff options
author | Háčky <hatschky@gmail.com> | 2014-11-27 07:15:45 +0000 |
---|---|---|
committer | Háčky <hatschky@gmail.com> | 2014-11-27 07:15:45 +0000 |
commit | 319ed6d0e0266f5f6174a5acd929914db8cfae1d (patch) | |
tree | 76408d9cadcbed1e702efa8c44f4cf5e364b0a4d /scripts/trainerchecksum.py | |
parent | 17853b802692237d98f96d1a80caf2019f71753e (diff) |
Diffstat (limited to 'scripts/trainerchecksum.py')
-rw-r--r-- | scripts/trainerchecksum.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/trainerchecksum.py b/scripts/trainerchecksum.py deleted file mode 100644 index 78d7ffa..0000000 --- a/scripts/trainerchecksum.py +++ /dev/null @@ -1,13 +0,0 @@ -import struct -import sys - -out = open(sys.argv[2], 'w') -sum = 0 -with open(sys.argv[1], 'rb') as f: - buf = f.read() - data = struct.unpack('<IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII', buf) - for word in data: - sum = (sum + word) % 2**32 -f.closed -out.write(buf) -out.write(struct.pack('<I', sum))
\ No newline at end of file |