sarbian/ModuleManager

[Enhancement Request] NEEDS using subdirectories

jrossignol opened this issue · 2 comments

I may have a use case for Contract Configurator contracts where I want to do something different with/without the Making History expansion. It would be ideal if I had an easy module manager way to do this with a NEEDS check. Right now I could technically do NEEDS[SquadExpansion], but we have to assume that there will be more expansions in future (Take 2 need their cheddar).

My suggestion for how to solve this would be to implement something that allows me to do NEEDS[SquadExpansion/MakingHistory]. I realize that something like this has been requested and rejected in the past (since the "mods by directory" list is built up front), so I'd be fine if this was something that was done specifically for the SquadExpansion directory as an exception. Of course if you're adding exceptions, I'd also ask that you consider putting ContractPacks as an exception as well as I have users that would want to do NEEDS[ContractPacks/foo].

I've been thinking about this too, I think this is a good idea. I think it's simple enough to say that if the string contains a / then it will check needs by looking for that path inside GameData

I will also use this.