-
-
Save Sorok-Dva/2b86b67fbf67650285b79ebe63d81e7c 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