KSP-ModularManagement / KSPe

Extensions and utilities for Kerbal Space Program
http://ksp.lisias.net/add-ons/KSPAPIExtensions
Other
11 stars 6 forks source link

`KSPe.Util.SystemTools.Assembly.Loader<T>()` to cope with TweakScale Companion directory structure. #44

Closed Lisias closed 1 year ago

Lisias commented 1 year ago

Before internalising KSPe.Util.SystemTools.Assembly.Loader(string), I need to instrument KSPe.Util.SystemTools.Assembly.Loader<T>() to cope with the multilevel directory structure used by the TweakScale Companions, as used by

and others.

Se the Startup class on the main project.

Lisias commented 1 year ago

A new attribute called NamespaceAsDirectories, a bool, was added to the Version metaclass. Default to false.

When true, the namespace is converted into a pathname to be used on resolving the add'on's home directory.

Lisias commented 1 year ago

Implemented on commit https://github.com/net-lisias-ksp/KSPe/commit/09be6b7d5060fd68b9548a27cbf9c3dc5557f6cd