Skip to content

Instantly share code, notes, and snippets.

@x43x61x69
x43x61x69 / switch_romfs.py
Created July 19, 2017 14:15 — forked from SciresM/switch_romfs.py
Switch RomFS (IStorage) -> Files
from struct import unpack as up
import sys, os
dirs, files = None, None
def read_at(fp, off, len):
fp.seek(off)
return fp.read(len)
def read_u8(fp, off):