Mods folder, and F8 cheats from Xbox Game Trainer #182
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/lobomfz--VIctory-xmem!182
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-182"
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?
@edupode on GitHub · 2026-12-02 12:41 UTC · original
edupode:f8-cheats→main· +133 −0 · 6 files · 1 commits · openAdds a small mods folder to xmem, so the F8 cheats from Xbox Game Trainer (GPL-3.0) can run in it.
What changes
apps/victory/src/mods.rs: once the title's image is mapped, and before any title code runs, every DLL in the mods folder is loaded withLoadLibraryW. The folder isVICTORY_MODS_DIR, otherwisemodsbesidevictory.exe.VICTORY_MODS=0loads none, and each loaded DLL is named in the output. With no mods folder, nothing changes.tools/cheats.sh: puts the newestvictory_cheats.dllfrom the trainer's releases into./modsand setsVICTORY_MODS_DIRinrun.conf.tools/cheats.sh offundoes that, andtools/cheats.sh FILE.dlluses a local copy instead of downloading./mods/in.gitignore.How the trainer runs here
No engine API is needed. Without one, the DLL finds the title's image itself, checks the 70 game functions it uses, takes F8 and draws its menu in a window of its own. It is single player only.
Tested
🤖 Generated with Claude Code
@Luxuride on GitHub · 2026-12-04 12:01 UTC · original
The mods loader is ~35 lines and genuinely useful, but as one PR this cannot land:
tools/cheats.sh:24-28fetches whatever the mutable "latest release" of a third party's trainer repo points at and the loader executes it inside the game process, with no hash. Every download insetup.shis pinned (setup.sh:11-22carries a sha256 per URL), so this is the opposite of the project's own rule.Smaller things, all fixable:
VICTORY_MODS_DIRandVICTORY_MODSare in neitherrun.conf.defaultnordocs/SETTINGS.md, so the F1 menu cannot show them (run.conf.default:2-3).apps/victory/src/mods.rs:22-27defaults the folder to next tovictory.exe, i.e. inside the build output, whichbuild.sh/setup.shwipe on update — andtools/cheats.shwrites to./modsat the repo root. The two halves disagree on the path; the game dir next torun.confis the place both want.apps/victory/src/mods.rs:65-68mutates process-global env in a test without serialisation.If you split it into the loader alone, with the switch documented, mods under the game dir, and no network in the repo at all (let people fetch the DLL themselves and say so in the README), that half is reviewable.
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.