itb-community / ITB-ModLoader

A lua-based mod loader for the game Into the Breach
48 stars 18 forks source link

Add `onModEnumerating` event #137

Closed kartoFlane closed 1 year ago

kartoFlane commented 2 years ago

This PR adds a new event modApi.events.onModEnumerating, which takes the path to a mod's directory as argument, and runs before the mod's init.lua file is executed. This allows the mod loader to alter mod files before they're loaded to apply fixes, or inspect mod content.

kartoFlane commented 1 year ago

I'm closing this PR, seeing as currently there isn't really a use case for this event.