Skip to content

Show on-disk file size in victory inspect - #649

Merged
Marvisak merged 1 commit into
Marvisak:mainfrom
askharoun:inspect-file-size
Nov 25, 2026
Merged

Marvisak merged 1 commit into
Marvisak:mainfrom
askharoun:inspect-file-size

Conversation

@askharoun

Copy link
Copy Markdown
Contributor

What

Print the file size in bytes alongside the BLAKE3 hash. This makes it easier to distinguish the size on disk from the mapped image size.

Tested

Reviewed the one-line change. Cargo was unavailable, so the CLI was not run.

@LAKSHYA-cmd-tech LAKSHYA-cmd-tech left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Windows 11 with Rust 1.98.1 (x86_64-pc-windows-msvc).

  • cargo test -p victory: test passed cleanly.
  • cargo xtask policy: 151 files ok.
  • Verified display of on-disk file size in �ictory inspect.

@mercuryVM mercuryVM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested 43e2ca9 on Windows 11, RTX 5070, MSVC: cargo test --workspace --no-fail-fast passes (264 passed, 0 failed).

One println! of data.len(), the same bytes the BLAKE3 line hashes, so the two always describe the same file. The column alignment matches the neighbouring lines. No issues.

AI-assisted (Claude Code).

mercuryVM added a commit to mercuryVM/VIctory that referenced this pull request Nov 24, 2026
…pect

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified locally on macOS 26 arm64, rustc 1.98.1:

Main's app crate doesn't compile on macOS (known host_resource cfg issue in victory-gpu, fixed by #235/#523), so I merged #235's head locally (uncommitted, no conflicts) purely to check this one-line change:

  • cargo check -p victory --locked: clean.

The change itself is a single added line in inspect.rs; compiles fine. Approving.

@mercuryVM mercuryVM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested 43e2ca9 on Windows 11, RTX 5070, MSVC: cargo test -p victory passed. Clippy's 1 warning is the existing field_reassign_with_default in victory-hle xmem.rs:747. I ran victory inspect on a local title executable, and it prints the new file size … bytes line once, after the hash.

  • data.len() is the bytes that were read and hashed, so the size and BLAKE3 always describe the same input.

AI-assisted (Claude Code).

@ErRusso

ErRusso commented Nov 24, 2026

Copy link
Copy Markdown

Audit: ✅ Looks good

Reviewed this PR as part of an audit of mergeable PRs.

  • Scope: apps/victory/src/inspect.rs (+1/-0). Adds a file size N bytes line (uses data.len(), the bytes actually read) between the path and the blake3 hash in victory inspect.

Trivially correct and useful for correlating on-disk vs. logical size.

No issues found.

Yaekai pushed a commit to Yaekai/VIctory that referenced this pull request Nov 24, 2026
github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026
github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026
github-actions Bot pushed a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026
Merges Marvisak#115 Marvisak#151 Marvisak#238 Marvisak#353 Marvisak#378 Marvisak#476 Marvisak#482 Marvisak#535 Marvisak#649 Marvisak#664 Marvisak#1177 onto main
(ffe310e), each head unchanged, no conflicts.

One change of mine: Marvisak#378 turns the duplicate check in translate.rs into a
nested `if !seen.insert(..) { if !list { .. } }`, which
clippy::collapsible_if rejects under -D warnings; it is now one
`if !seen.insert(..) && !list` (clippy --fix, same behaviour).

cargo clippy --workspace --all-targets --locked -- -D warnings, with and
without --all-features, is clean and cargo test --workspace --locked passes
(354 passed, 6 ignored; main has 342 passed, 6 ignored).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026
@Marvisak
Marvisak merged commit dcd24fe into Marvisak:main Nov 25, 2026
geiyiliyabumo pushed a commit to geiyiliyabumo/VIctory that referenced this pull request Nov 25, 2026
…standin-111a

HLE: title-window stand-in that always pumps messages (Marvisak#491)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants