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 os | |
| import sys | |
| import struct | |
| from pathlib import Path | |
| lev_list = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B"] | |
| def lzss_decompress(compressed_data, window_size=0x1000): | |
| """ | |
| Decompresses PSX-style LZSS data, ported from Ghidra-decompiled DD2 code |