Repository navigation
Conversation
PatcherContext.AvailableAssemblies is keyed by the on-disk file name with an ordinal comparer, while patchers declare their target as a name such as Game.dll. An assembly stored as game.dll - a case-preserving file system, or a game folder that lost its casing - never matched, so the patch was skipped without a log line. The patcher stayed loaded but inert and DumpedAssemblies stayed empty. Case-insensitivity is the documented intent, not a preference: * 990b85d "Ignore case in TargetDLLs assembly names" (2020) made the bookkeeping copies ignore case, but the lookup kept reading the ordinal dictionary. * BepInEx#111 is labelled bug and enhancement: "Preloader does case-sensitive checks when working with assembly filenames. This breaks especially on Linux where filenames are case-sensitive." Key the patcher context dictionaries case-insensitively so the lookup honours that intent.
|
Download the artifacts for this pull request: |
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.
I noticed prefatcher mods don't work for me correctly because I use a NTFS drive for my games on Linux, which renames all files to be lowercase, since Windows is case insensitive. I looked into it and it seems like this is actually a bug in BepInEx intended to be case insensitive but someone forgot about it.
BepInEx#111