skrypton-api / com.waicool20.skrypton.util / SystemUtils / loadLibrary

loadLibrary

fun loadLibrary(path: Path, loadDirectly: Boolean = false): Unit

Load a library from a given path.

Parameters

path - Path to the library

loadDirectly - If true, it will attempt to load the library directly using the absolute path, otherwise it will attempt to modify the java.library.path variable and load it by name.

fun loadLibrary(paths: List<Path>, loadDirectly: Boolean = false): Unit

Loads libraries from a given path.

Parameters

paths - List containing path to the libraries

loadDirectly - If true, it will attempt to load the libraries directly using the absolute path, otherwise it will attempt to modify the java.library.path variable and load it by name.