Decomp updates
This commit is contained in:
parent
f6a5155675
commit
c4fa8a6b05
62 changed files with 9413 additions and 20 deletions
13
tmp_extract_asset_strings.py
Normal file
13
tmp_extract_asset_strings.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import re
|
||||
from pathlib import Path
|
||||
|
||||
path = Path(r"E:\\emu\\psx\\Crusader - No Remorse\\SLUS_002.68")
|
||||
data = path.read_bytes()
|
||||
pattern = re.compile(rb"[ -~]{4,}")
|
||||
needle = re.compile(r"WDL|LSET|MENU|SPEC|MAP|SPR|TILE", re.I)
|
||||
seen = set()
|
||||
for m in pattern.finditer(data):
|
||||
s = m.group().decode("ascii", errors="ignore")
|
||||
if needle.search(s) and s not in seen:
|
||||
seen.add(s)
|
||||
print(f"0x{m.start():08X}\t{s}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue