Commit Graph

10 Commits

Author SHA1 Message Date
0aedf6a72a Merge remote-tracking branch 'origin/pr/8958' 2026-11-23 17:41:03 -05:00
0121666d83 check_no_game_data: catch the player's saves and world_build's LPK1 packs
docs/saves.md says never to commit or attach real saves, but a save
under another name passed the check: none of its three containers was
among the magics. Neither was the staging pack world_build.py writes,
which holds positions, normals, UVs and indices of the game's models.

- JSAV story save ("JSAV" at 0)
- ASAV save record, profile and settings ("ASAV" at 0)
- SLAYER1 packed save ("SLAYER1\0" at 0)
- LPK1 world staging pack ("LPK1" at 0, world_build.py _write_pack)

No tracked file in the repository starts with any of them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:52:48 +03:00
8d460a57f9 check_no_game_data: report an unreadable file as one stderr line and exit 2, not a traceback
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 20:50:57 +01:00
8d85654bd0 check_no_game_data: match the MoVE, SKEL_ and SCRP containers (EGEN-NOGAMEDATA-ANIM-MAGICS) (#6782)
Squash-merged after diff review of PR #6782 - check_no_game_data: match the MoVE, SKEL_ and SCRP containers (EGEN-NOGAMEDATA-ANIM-MAGICS)
2026-11-23 09:58:12 -06:00
9b13eeade7 check_no_game_data: catch PSIN/PAMH/MHIU/SPS1/SGD5/RDS5/AWC/YSC containers (#6311)
Squash-merged after review of PR #6311 - check_no_game_data: catch PSIN/PAMH/MHIU/SPS1/SGD5/RDS5/AWC/YSC containers
2026-11-23 08:06:49 -06:00
fce5ca5b06 check_no_game_data: look inside zip, tar, gzip, bzip2 and xz files
Archives are opened with the standard library and every member is
classified like a tracked file, up to three levels deep, under a
decompression budget (64 MiB expanded, 10,000 members). Formats the
standard library can't open (7-Zip, Zstandard, RAR) and archives that
can't be read are reported as unchecked rather than passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 04:45:47 +01:00
6fde08a9bd Merge pull request #3076 from Eng-Meshari 2026-11-22 17:00:32 -05:00
dac28e6b19 Fix what the round-42 merges broke (tests and docs)
- shader_disasm: prune stale listings against every input, not the --skip-existing remainder (a resumed run
  deleted every listing it had just reused).
- progress_dashboard: a drive-letter path is never inside the repository off Windows (it printed user names);
  its own read_text helper is read_utf8, so the encoding check does not take it for pathlib's.
- Translator tests follow this round's rules: desc_lookup's BroadcastFirst in the typed-load condition walker;
  resinfo sizes are 0 past the last level and a 2D depth word is 0 (SHADER-388); SHADER-315 constant folding in
  the perm and i16 tests; #2089's structured wave64 emulation.
- test_semantic_translator_use: 57 oracle-only files merged before it are DEBT; test_spirv_tools_required is
  allowed (CI meta-test).
- Test fixes: image_fuzz fake writes the programs, preflight follows c506d00c's loader hint rule, feature_scan
  reads the first line of a pytest-decorated message, w64_graphics wording.
- docs: rows merged again in design.md, README.md, d3d12_vulkan.md; GameInput table rebuilt from #3172's rows;
  orphan rows in models.md and embedded_shaders.md; repeated bullets; anchors; a flag not on main.
- Repo rules: stdout guard on 14 programs; LF writes; csv lineterminator in bink_play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:14:54 -05:00
f9ccf445f1 fix(no-game-data): read the PE signature wherever e_lfanew points 2026-11-22 23:11:01 +03:00
6be9e8b670 Add script to check for game data signatures in files
This script checks for files that start with game data signatures and lists them. It reads the first bytes of each file to match against known magic numbers.
2026-11-22 22:12:54 +03:00