add LoadFolders patch to dynamically load mod directories based on platform branch - #329
Open
LinnielDW wants to merge 1 commit into
Open
add LoadFolders patch to dynamically load mod directories based on platform branch#329LinnielDW wants to merge 1 commit into
LinnielDW wants to merge 1 commit into
Conversation
Contributor
Author
|
Of course, this conditional loading feature won't work for baselib, as the assembly will already be loaded. Ideally we'd want megacrit to support this in-house. |
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.
Adds support for 'loadFolders' files, a new optional file mods can place in their root directory to load different DLL/PCK builds depending on the active Steam branch. This is to allow mod developers to upload different versions of the mod within the same workshop item and have Baselib load the correct version based off of the version loaded.
pck file included in both due to godot uuid goodness.
Tested on both v108 public-beta and on v107.1 main.
LoadFolders is a json but not declared as one, because v107 tries to load it as a mod mainfest.
loadFolders format:
mod folder structure example with using loadFolders:
