Click or drag to resize

KspPaths Class

A helper class to deal with plugins file structure.
Inheritance Hierarchy
SystemObject
  KSPDev.FSUtilsKspPaths

Namespace:  KSPDev.FSUtils
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
public static class KspPaths
Request Example View Source

The KspPaths type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberpluginsRoot
Returns full path to the plugins root folder (a.k.a. GameData).
Top
Methods
  NameDescription
Public methodStatic memberGetModsDataFilePath
Returns a relative game's path to the file located in the data folder.
Public methodStatic memberCode exampleGetModsPath(Object)
Returns a relative game's path to the mod's root folder.
Public methodStatic memberCode exampleGetModsPath(Type)
Returns a relative game's path to the mod's root folder.
Public methodStatic memberMakeAbsPathForGameData
Makes full absolute path from the provided relative path in the game's GameData folder.
Public methodStatic memberCode exampleMakeRelativePathToGameData
Returns path relative to the game's GameData folder.
Public methodStatic memberNormalizePath
Normalizes path by resolving all upcasts. Works for both relative and absolute paths.
Top
Fields
  NameDescription
Public fieldStatic memberPluginDataFolderName
A standard name to place the configs that should be ignored by the game's core.
Public fieldStatic memberPluginFolderName
A standard directory name to place the mod's binary.
Public fieldStatic memberpluginsRootFolder
Standard plug-ins folder.
Top
See Also