Fix false MFG Unlocker detection with ordinary mods #2113
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2113"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by BlackpawNR on 2026-11-29T09:36:19Z.
What it changes
Loading an ordinary DLL from the new
modsfolder can make the startup banner say that a mod unlocked DLSS Frame Generation. Both the folder loader and MFG Unlocker calledstreamline::load_mod, which setMFG_LOADEDon 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
829188e9after loadingkernel32.dllthrough 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 victorypassed with 997 tests passing and 57 ignored. The staged asset check passed for all three files.victory-formats. All three also fail on unmodified829188e9withcargo test --locked -p victory-formats --lib bcpack::tests::oracle_parity.Checked for overlap
View 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.