Skip to content

Conversation

@hazre
Copy link
Member

@hazre hazre commented Dec 17, 2025

Add utility method to detect BepisLoader assembly and retrieve its version, then log this information during chainloader initialization.

@github-actions
Copy link

Download the artifacts for this pull request:

/// Gets the BepisLoader version if available.
/// </summary>
/// <returns>The version string, or null if BepisLoader is not found.</returns>
public static Version GetBepisLoaderVersion()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't there a Utils.BepisLoaderVersion or whatever

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wait I see its bepisloader not bepinex version. I mean I don't like this function in this place. I don't think we should be modifying bepinex core unless we have to

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the logger is in bepinex core and all the sys/env info is printed at the top. So this would be the appropriate place to do it. Alternative would be to put it in the Shim but it would get buried under other logs.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean shim already prints it if you have the option to change window title technically. and yeah I think it makes more sense to do it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants