A mods folder: load every DLL in %LOCALAPPDATA%\victory\mods before the title runs #1892
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!1892
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1892"
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 01:47 UTC · original
ragetools:mods-folder→main· +30 −0 · 2 files · 1 commits · merged 2026-11-29 08:16 UTCWhat it changes
victory already loads one mod in a slot of its own (MFG Unlocker) and whatever DLL sits beside
victory.exeunder a Windows name. A mod that is neither has no clean way in: it has to pose as a system DLL or inject itself from outside.This adds a mods folder. Every
.dllin%LOCALAPPDATA%\victory\modsis loaded by name order, after MFG Unlocker's slot and before the title runs, through the samevictory_hle::streamline::load_modcall that slot uses. 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.It is called on both paths that run a title (
playandrun), so a script that runs the title directly loads the same DLLs.30 lines:
load_modsinapps/victory/src/play.rs, two calls inapps/victory/src/main.rs.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 (the loader iscrates/tools/or-loaderthere, the guide isdocs/guides/GTA_VI_Modding.md). Nothing in this change is specific to it: any mod DLL dropped in the folder loads the same way.How it was tested
mainbuild and runcargo testpassed for the crates it touches: no (not run;cargo build --release -p victorypasses)Checked for overlap
[pr-feature] A mods folder: load every DLL in %LOCALAPPDATA%\victory\mods before the title runsto A mods folder: load every DLL in %LOCALAPPDATA%\victory\mods before the title runs@ifBars on GitHub · 2026-11-29 18:02 UTC · original
Thanks for the mods folder. We'd like Palmhook (a mod host for this title) to install as a DLL in this folder instead of as a patched
victory.exe, but the folder alone isn't enough for that yet:streamline::load_modmarks MFG Unlocker as present for any DLL. #2113 fixes that.#2846 (draft) adds optional
victory_mod_*exports for the first three points. A DLL that exports none of them behaves exactly as it does with this PR.