Add mod loader auto-detection mechanism to LinuxBootstrap.sh#23
Merged
art0007i merged 5 commits intoResoniteModding:masterfrom Sep 24, 2025
Baplar:bl/AdaptiveLinuxBootstrap
Merged
Add mod loader auto-detection mechanism to LinuxBootstrap.sh#23art0007i merged 5 commits intoResoniteModding:masterfrom Baplar:bl/AdaptiveLinuxBootstrap
art0007i merged 5 commits intoResoniteModding:masterfrom
Baplar:bl/AdaptiveLinuxBootstrap
Conversation
art0007i
requested changes
Sep 24, 2025
art0007i
left a comment
There was a problem hiding this comment.
few nitpicks but looks good overall. thanks for the help!
hazre
approved these changes
Sep 24, 2025
Member
hazre
left a comment
There was a problem hiding this comment.
Haven't tested it but it looks good, thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This change adds an automatic detection mechanism to only launch the mod loader if requested.
It checks the hookfxr parameters of the current running command, and launches the requested mod loader appropriately.
Motivation and Context
The current version of BepisLoader replaces the official LinuxBootstrap.sh script in order to start with the correct entry point.
However, this is done in a destructive manner: the new script always tries to launch BepisLoader, even if the user meant to launch the vanilla game. To do so, the user would have to delete the new script and validate files with Steam to restore the original.
This change makes it so that the vanilla game will be launched by default, and the mod loader will only be launched if requested through the configuration or command line arguments.
How Has This Been Tested?
I have tested the script on my PC and checked as many use cases as I could think of:
--hookfxr-disable--hookfxr-enableenable=trueset inhookfxr.ini--hookfxr-enable --hookfxr-target=MonkeyLoaderWrapper.Linux.dllenable=trueandtarget_assembly=MonkeyLoaderWrapper.Linux.dllset inhookfxr.iniTypes of changes
Checklist: