launcher: identify staged provider before comparing revisions #255

Merged
Valdi320 merged 1 commit from upstream-pr/255 into main 2026-11-26 21:27:17 +00:00
Valdi320 commented 2026-11-26 17:26:52 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T17:26:52Z.


Follow-up to #231, where a before/after comparison unintentionally used the same staged provider DLL across checkouts. Log the staged D3D12 DLL SHA-256 and the local build's SHA-256 when available. Warn on mismatch by default. An explicit --require-current-provider refuses to prepare or launch unless the staged DLL matches the local build, including missing/ambiguous files. Never redeploy or modify a title. This checks file identity, not the source revision of a built file or the actual Wine module loader's choice.

Five new tests (matching files, same-size mismatch, missing build/staged, ambiguous case variants, and strict refusal before shader preparation/guest launch). 385 Python tests executed, 27 skipped, all six no-GPU groups passed. Also compared two actual previously built provider DLLs with different SHA-256 in a temporary directory: matching accepted, mismatching refused, staged bytes unchanged. No game launched or GPU behavior changed. Full GPU and AMD validation outstanding. Draft for review.

<!-- greyfinch-sync:brcly/TuxBox:issue:5514506182 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/255). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-26T17:26:52Z. --- Follow-up to #231, where a before/after comparison unintentionally used the same staged provider DLL across checkouts. Log the staged D3D12 DLL SHA-256 and the local build's SHA-256 when available. Warn on mismatch by default. An explicit --require-current-provider refuses to prepare or launch unless the staged DLL matches the local build, including missing/ambiguous files. Never redeploy or modify a title. This checks file identity, not the source revision of a built file or the actual Wine module loader's choice. Five new tests (matching files, same-size mismatch, missing build/staged, ambiguous case variants, and strict refusal before shader preparation/guest launch). 385 Python tests executed, 27 skipped, all six no-GPU groups passed. Also compared two actual previously built provider DLLs with different SHA-256 in a temporary directory: matching accepted, mismatching refused, staged bytes unchanged. No game launched or GPU behavior changed. Full GPU and AMD validation outstanding. Draft for review.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox!255
No description provided.