Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules Config "BasePath" #597

Merged
merged 6 commits into from
Nov 10, 2023
Merged

Modules Config "BasePath" #597

merged 6 commits into from
Nov 10, 2023

Conversation

enusbaum
Copy link
Member

@enusbaum enusbaum commented Nov 6, 2023

The goal with this PR is that we can specify one BasePath in a Module Configuration File. In the near future, this will make packaging a "MBBSEmu Game Pack" easier to distribute as every module can be relatively pathed off a root folder with a single configuration.

Additionally, it should make managing a Modules Config JSON file with multiple modules easier to manage if all the modules share the same relative path.

  • Add BasePath Option to Module Configuration JSON
  • Create new JSON ModuleConfiguration Converter that loads Modules from the JSON and applies Base Path to each deserialized Module
  • ModuleConfiguration will now apply BasePath to a modules specified path if it is set, and the Module path specified isnt a Root path

- Add `BasePath` Option to Module Configuration JSON
- Create new JSON ModuleConfiguration Converter that loads Modules from the JSON and applies Base Path to each deserialized Module
- ModeConfiguration will now apply `BasePath` to a modules specified path if it is set, and the Module path specified isnt a  Root path
@enusbaum
Copy link
Member Author

enusbaum commented Nov 6, 2023

Oh -- I guess I could write some Unit Tests for this as well :)

Copy link
Collaborator

@paladine paladine left a comment

Choose a reason for hiding this comment

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

sure whatever

@paladine paladine merged commit a63ce16 into master Nov 10, 2023
1 check passed
@paladine paladine deleted the modules-config-basepath branch November 10, 2023 19:25
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.

None yet

2 participants