KspPathsGetModsPath Method (Object) |
Namespace: KSPDev.FSUtils
public static string GetModsPath( Object target )
Given the mod's assembly was loaded from GameData/ModFolder1/ModFolder2/Plugins/mod.dll, the returned path will be GameData/ModFolder1/ModFolder2/ because of Plugins folder name is considered to be a common name for the mod's binaries.
If the mod's DLL is located in the folder other than Plugins, then just the parent folder is returned. E.g. for GameData/ModFolder1/ModFolder2/MyDLLs/mod.dll, the result would be GameData/ModFolder1/ModFolder2/MyDLLs/.