This file contains 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 os | |
import struct | |
FS_HEADER_SECT = None # SLPS-25050: 279 | |
DIRSIZE_TBL_TOC_ENT = None # SLPS-25050: 16 | |
ISOPATH = r'path to iso here' | |
OUTDIR = r'path to output directory here' | |
def get_u32_le(buf, off=0): | |
return struct.unpack("<I", buf[off:off+4])[0] |