User:Eientei/Panic in the Park

From ScummVM :: Wiki
Jump to navigation Jump to search

Everything in PANIC.ART seems to be compressed.

Python script to print out the TOC:

from struct import unpack
from sys import argv

f = open(argv[1], 'rb')
volName, unk1, numEnt, fileSize = unpack('<23ssII', f.read(0x20))
for _ in range(numEnt - 1):
    fileName, unk1, offset, size = unpack('<23ssII', f.read(0x20))
    fileName = fileName.decode("ascii").rstrip('\x00')
    print(f'{fileName:8}\t{unk1.decode("ascii")}\t{offset:08x}\t{size:08x}')

unk1 seems to indicate the type of the entry(?), seen ? for the first entry and then X for the others.