Report effect databases in shader-info effects mode #2319
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2321"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by DoubleD17 on 2026-11-25T10:36:40Z.
The shader-info effects mode listed parsed effects and then printed a misleading zero-container summary. Count the SGD5 effect databases the parser recognizes and print that total in effects mode. The standard shader-info command retains its container summary. On Windows with Rust 1.98.1, the synthetic CLI integration test failed on main with the fixture applied and passed on this commit. It covers a recognized effect database, input with zero effect databases, and the standard summary.
AI-assisted.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T10:42:03Z.
Review: APPROVED
Verified against
origin/main(940d32f):sgd5databases fromlist_effectsand printingshader effect databases found: Nin--effectsmode avoids the misleadingcontainers found 0summary.cargo test -p victory --test shader_effects: 1/1 passed.cargo clippy -p victory --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 184 files ok.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T10:54:07Z.
Review: COMMENTED
shader-info effects mode reports effect database count. Apps crate is Windows-only; static review — small reporting addition.
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T11:09:10Z.
Independent local validation (Windows, Rust 1.100.0/MSVC, head
e3fd720, no game data):cargo test --locked -p victory --test shader_effects-> 1 test passed (shader_effects_has_its_own_summary), exit 0; only pre-existing deprecation warnings.cargo test --workspace --locked --no-fail-fastexits 0 both on this PR and on main940d32f, so the new effects-mode summary adds no regression. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only CLI test). No game data, assets or extracted content used.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:17:40Z.
Automated triage for the maintainers.
Merge candidate (worth a look). In
apps/victory/src/shader.rsrun,shader-info --effectsnow counts the SGD5 databases thatlist_effectsfinds and prints that count; before, it printed a container summary that was always empty. The normal mode is unchanged, and effects mode already skipped container and pack handling, so returning early drops nothing. The new integration test uses a small synthetic SGD5 file and the crate's own binary, the same pattern astests/census.rs. CI: passing.Generated by Claude Code
upstream-sync referenced this pull request2026-11-25 16:09:31 +00:00
upstream-sync referenced this pull request2026-11-25 22:04:34 +00:00
upstream-sync referenced this pull request2026-11-25 23:06:13 +00:00
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T02:05:07Z.
Review: COMMENTED
Reviewed and verified against
main(63bcca43) on Windows 11 — clean fix and ready to merge:databases.len()fromlist_effectsand printingshader effect databases found: {effect_databases}before returning early inapps/victory/src/shader.rseliminates the misleadingcontainers found 0 (in 0 files)summary in--effectsmode.apps/victory/tests/shader_effects.rsexercises.sgd5, empty/non-effect directory, and non---effectsmodes cleanly.Local verification:
cargo test --locked -p victory: 19/19 passed (14unit +census+census_unreadable+shader_effects+translate)cargo clippy -p victory --all-targets -- -D warnings+cargo xtask policy(192 files ok): 0 warningsView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.