readScriptPack

internal fun readScriptPack(parent: Path, configPath: Path, rootPath: Path, extension: String): RawScriptPack<Path>?(source)

Read the contents of a Koremods Script Pack at the specified path

Return

the parsed script pack in path form, or null if it contains no scripts

Parameters

parent

path to the pack's containing file

configPath

path to the pack's configuration file

rootPath

root path of the script pack

extension

expected script extension