-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix recursive localization loading when using mods
In CK3 and some other games, the localization folder has a deep hierarchy of folders. The previous logic used FilenameResolver.listFiles() and then recursively listed files on any directories that appeared in the list. But this is incorrect behavior if the same subfolder appears in both places, as listFiles() will believe the subfolder in the mod overrides the subfolder in the main. In reality, both subfolders need to be considered, and only identical filenames *inside* the folder are overriden.
- Loading branch information
Showing
2 changed files
with
124 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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