Skip to content

add LoadFolders patch to dynamically load mod directories based on platform branch - #329

Open
LinnielDW wants to merge 1 commit into
Alchyr:developfrom
LinnielDW:feature/LoadFolders
Open

add LoadFolders patch to dynamically load mod directories based on platform branch#329
LinnielDW wants to merge 1 commit into
Alchyr:developfrom
LinnielDW:feature/LoadFolders

Conversation

@LinnielDW

@LinnielDW LinnielDW commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

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:

{
  "public": "stable",
  "public-beta": "beta"
}

mod folder structure example with using loadFolders:
image

@LinnielDW
LinnielDW changed the base branch from master to develop July 4, 2026 12:47
@LinnielDW

LinnielDW commented Jul 4, 2026

Copy link
Copy Markdown
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.

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.

1 participant