Fix false MFG Unlocker detection with ordinary mods #2113

Open
BlackpawNR wants to merge 1 commit from upstream-pr/2113 into main
BlackpawNR commented 2026-11-29 09:36:19 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BlackpawNR on 2026-11-29T09:36:19Z.


What it changes

Loading an ordinary DLL from the new mods folder can make the startup banner say that a mod unlocked DLSS Frame Generation. Both the folder loader and MFG Unlocker called streamline::load_mod, which set MFG_LOADED on every success. That flag also lets the renderer request DLSS Frame Generation when the adapter reports it unsupported.

Both launcher entry points now record the flag only after Windows successfully loads the DLL from the dedicated MFG Unlocker slot. Loading another mod later preserves that state.

How it was tested

  • On Windows, the regression test failed against 829188e9 after loading kernel32.dll through the ordinary mod loader. It passes with this change. The test also covers a missing unlocker DLL, a successful explicit load, and an ordinary load afterwards. It runs in its own process using a DLL already present on Windows.
  • cargo test --locked -p victory-gpu -p victory passed with 997 tests passing and 57 ignored. The staged asset check passed for all three files.
  • The full workspace run stopped at three BC7 decoder parity tests in victory-formats. All three also fail on unmodified 829188e9 with cargo test --locked -p victory-formats --lib bcpack::tests::oracle_parity.
  • In a local build with the same loader separation on an RTX 5070 Ti, a story mod loaded from the mods folder and the startup banner correctly reported native DLSS Frame Generation support. The run used Series X, 2560×1440, DLSS Quality, frame generation ready/off, and ray tracing off.

Checked for overlap

  • Checked open PRs touching the launcher and Streamline. This addresses the interaction between the mods folder in #1892 and the unlocker tracking in #1897.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5549467401 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2113). Originally posted by [BlackpawNR](https://github.com/BlackpawNR) on 2026-11-29T09:36:19Z. --- ## What it changes Loading an ordinary DLL from the new `mods` folder can make the startup banner say that a mod unlocked DLSS Frame Generation. Both the folder loader and MFG Unlocker called `streamline::load_mod`, which set `MFG_LOADED` on every success. That flag also lets the renderer request DLSS Frame Generation when the adapter reports it unsupported. Both launcher entry points now record the flag only after Windows successfully loads the DLL from the dedicated MFG Unlocker slot. Loading another mod later preserves that state. ## How it was tested - On Windows, the regression test failed against `829188e9` after loading `kernel32.dll` through the ordinary mod loader. It passes with this change. The test also covers a missing unlocker DLL, a successful explicit load, and an ordinary load afterwards. It runs in its own process using a DLL already present on Windows. - `cargo test --locked -p victory-gpu -p victory` passed with 997 tests passing and 57 ignored. The staged asset check passed for all three files. - The full workspace run stopped at three BC7 decoder parity tests in `victory-formats`. All three also fail on unmodified `829188e9` with `cargo test --locked -p victory-formats --lib bcpack::tests::oracle_parity`. - In a local build with the same loader separation on an RTX 5070 Ti, a story mod loaded from the mods folder and the startup banner correctly reported native DLSS Frame Generation support. The run used Series X, 2560×1440, DLSS Quality, frame generation ready/off, and ray tracing off. ## Checked for overlap - [x] Checked open PRs touching the launcher and Streamline. This addresses the interaction between the mods folder in #1892 and the unlocker tracking in #1897.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2113:upstream-pr/2113'
git switch 'upstream-pr/2113'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2113'
git switch 'upstream-pr/2113'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2113'
git switch 'upstream-pr/2113'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2113'
git switch 'main'
git merge --squash 'upstream-pr/2113'
git switch 'main'
git merge --ff-only 'upstream-pr/2113'
git switch 'main'
git merge 'upstream-pr/2113'
git push origin 'main'
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
trustno1-coder/VIctory-NVIDIA!2113
No description provided.