From 54647dbc7708a0ca5797be1d493338fcb000dc78 Mon Sep 17 00:00:00 2001 From: Koro4e <96347170+Koro4e@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:54:21 +0100 Subject: [PATCH 1/2] check_no_game_data: catch the package's other containers under a harmless name (finding by DeepSeek9) The magic list caught RPF9/TTPF/RSC8/DDS/FSSM/XBCH/SPIR-V/XVD and the ADAT/TADA AWC banks, but a PSIN container, a PAMH or MHIU heightmap, an SPS1 shader-preset table, an SGD5 effects database, an RDS5 texture container, an AWC\x00 bank or a YSC\x00 compiled script saved as .dat/.bin passed the check. tools/gamedata_index.py, gamedata_maps.py, gamedata_sps1.py, sgd5_effects.py, ttpf_mips.py and restofworld_index.py read exactly those magics. --- scripts/check_no_game_data.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/check_no_game_data.py b/scripts/check_no_game_data.py index c962f11793..41f797207e 100644 --- a/scripts/check_no_game_data.py +++ b/scripts/check_no_game_data.py @@ -51,6 +51,14 @@ ("DDS texture", 0, b"DDS "), ("AWC audio bank", 0, b"ADAT"), ("AWC audio bank", 0, b"TADA"), + ("AWC audio bank", 0, b"AWC\x00"), + ("PSIN metadata container", 0, b"PSIN"), + ("PAMH heightmap", 0, b"PAMH"), + ("MHIU heightmap", 0, b"MHIU"), + ("SPS1 shader-preset table", 0, b"SPS1"), + ("SGD5 effects database", 0, b"SGD5"), + ("RDS5 texture container", 0, b"RDS5"), + ("YSC compiled script", 0, b"YSC\x00"), ("Ogg stream", 0, b"OggS"), ("Bink 2 video", 0, b"KB2"), ("Bink video", 0, b"BIK"), From d693a032e45db01562e9ad2a651c0dfd0861ffa5 Mon Sep 17 00:00:00 2001 From: Koro4e <96347170+Koro4e@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:54:22 +0100 Subject: [PATCH 2/2] # tests: check_no_game_data catches the other container magics --- tests/test_check_no_game_data.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_check_no_game_data.py b/tests/test_check_no_game_data.py index 7f08480d22..16129f497a 100644 --- a/tests/test_check_no_game_data.py +++ b/tests/test_check_no_game_data.py @@ -57,6 +57,14 @@ def pe_header(e_lfanew=0x80): ("pe_1mib.txt", pe_header(1 << 20), "PE executable"), ("pe_1mib_plus.txt", pe_header((1 << 20) + 4), "PE executable"), ("image.bin", bytes(0x200) + b"msft-xvd" + bytes(8), "XVD image"), + ("container2.dat", b"PSIN" + bytes(12), "PSIN metadata container"), + ("heightmap.dat", b"PAMH" + bytes(12), "PAMH heightmap"), + ("heightmap2.dat", b"MHIU" + bytes(12), "MHIU heightmap"), + ("presets.dat", b"SPS1" + bytes(12), "SPS1 shader-preset table"), + ("effects.dat", b"SGD5" + bytes(12), "SGD5 effects database"), + ("texcontainer.dat", b"RDS5" + bytes(12), "RDS5 texture container"), + ("bank2.json", b"AWC\x00" + bytes(12), "AWC audio bank"), + ("script.lol", b"YSC\x00" + bytes(12), "YSC compiled script"), ] PASSED = [