A mods folder: load every DLL in %LOCALAPPDATA%\victory\mods before the title runs #37
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!37
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/37/head"
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?
@leonidarider on GitHub · 2026-11-29 02:47 UTC · original
ragetools:mods-folder→main· +41 −0 · 1 files · 1 commits · closed without mergingWhat it changes
A mod DLL has no clean way into victory today: it has to pose as a system DLL beside the program or inject itself from outside.
This adds a mods folder. Every
.dllin%LOCALAPPDATA%\victory\modsis loaded by name order withLoadLibraryWjust before the title runs. Each one is named on the console whether it loaded or not, and a DLL that fails to load costs the run nothing. An empty or missing folder changes nothing, and off Windows the function is empty.One self-contained function,
load_mods, inapps/victory/src/main.rs, and a call beforerun::run. No new dependency.What uses it
We wrote it for OpenRage's mod loader: a DLL that serves loose files from a
modsfolder beside the game in place of the archives' own, with no archive rewritten. Nothing in this change is specific to it: any mod DLL dropped in the folder loads the same way.How it was tested
Honestly: not on this tree. The same behaviour is open and in daily use on the NVIDIA fork as trustno1-coder/VIctory-NVIDIA#1892, where it goes through that fork's own DLL-loading call. This version is rewritten to stand alone because this tree has no such call. The function compiles and passes
rustfmton its own under edition 2024 with warnings denied, but I have not built this repository with it, so please treat it as a proposal to check rather than a tested change.@readmet3xt-lab on GitHub · 2026-11-29 08:10 UTC · original
Thanks! Ported with credit (commit
6c67166) and released in v0.8.1: https://github.com/readmet3xt-lab/foxhound/releases/tag/v0.8.1. Each mod is named on the console, so it lands in the launcher's log. The README has a short Mods section warning to load only trusted DLLs.github-bot referenced this pull request2026-12-01 14:36:40 +00:00
Pull request closed