run: gate play::load_mods() behind #[cfg(windows)] and execute #2581
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RanoGames on 2026-11-29T14:37:22Z.
What 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.