Created
May 27, 2020 22:54
-
-
Save paulus-allods/7965c25b26c4e2c1acf419b861ac9ed3 to your computer and use it in GitHub Desktop.
Uncompress Allods bin files
This file contains hidden or 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
| import argparse | |
| from zlib import compress, decompress | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('file', type=argparse.FileType('rb')) | |
| args = parser.parse_args() | |
| dec = decompress(args.file.read()) | |
| args.file.close() | |
| f = open('out.bin', 'wb') | |
| f.write(dec) | |
| f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment