-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mod.plugins is a list of Paths instead of strs.
When Mod.plugins was a list of strings, we didn't have enough information to safely delete plugins without doing a ton of validation that those plugin files were actually under Data. This validation code was messy, and I wanted to keep the logic that detects whether a file is a plugin isolated to Mod.__post_init__. Make Mod.plugins a list of Paths. This allows us to greatly simplify the plugin deletion logic and still avoid deleting files we aren't supposed to. In removing this validation, the logic that determines whether a file is appropriately isolated to Mod.__post_init__.
- Loading branch information
1 parent
6c8bef6
commit 5a34168
Showing
5 changed files
with
29 additions
and
28 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
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
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