Fix false MFG Unlocker detection with ordinary mods #2113
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2113
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@BlackpawNR on GitHub · 2026-11-29 09:36 UTC · original
BlackpawNR:fix/mod-loader-mfg-state→main· +34 −6 · 3 files · 1 commits · openWhat 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.