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
#!/usr/bin/env python3 | |
# CPK file extractor (e.g. used as ressource packages in some games) | |
import sys, struct, os, zlib | |
class DCPK: | |
def read_uint(self): | |
return struct.unpack('<I',self.f.read(4))[0] | |
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
#!/usr/bin/env python3 | |
# GUI to explore the tree structure of RIFF files | |
# use in conjunction with an hex editor to explore raw data at the leaves | |
# RIFF format specification: | |
# https://msdn.microsoft.com/en-us/library/dd798636(v=vs.85).aspx | |
import sys, struct | |
import tkinter as tk |