run: gate play::load_mods() behind #[cfg(windows)] and execute #2581
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!2581
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2581"
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?
@RanoGames on GitHub · 2026-11-29 14:37 UTC · original
RanoGames:fix/run-load-mods→main· +3 −3 · 1 files · 1 commits · openWhat it changes
Fixes
Command::Runinapps/victory/src/main.rs:mod play;is gated with#[cfg(windows)], and every otherplay::call inmain.rsis already behind#[cfg(windows)], butplay::load_mods();was left outside both#[cfg(windows)]andif executeafter the merge in4aef7607.play::load_mods();into the#[cfg(windows)] if execute { ... }block (right afterload_mfg()/load_mfg_from_menu()), matchingCommand::Playand avoiding loading mod DLLs intovictory.exeon bind-onlyvictory runinvocations without--execute, while fixing non-Windows compilation ofapps/victory.How it was tested
play::load_mods();inCommand::Runran unconditionally outside#[cfg(windows)]and even when--executewas false.play::load_mods();only compiles on Windows and only executes whenexecuteis true.cargo testpassed for the crates it touches: yes (cargo test --locked -p victory: 78 unit tests + 1cache_paths+ 2censuspassed;cargo clippy --no-deps --locked -p victory --all-targets -- -D warningspassed)Checked for overlap
apps/victory/src/main.rs, unrelated restart-delay logic)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.