Skip to content

lightgun-poc / lib/native / loadLibNut

Function: loadLibNut()

loadLibNut(version?): Promise<LibNut>

Defined in: lib/native.ts:122

Loads the addon, memoized for the process lifetime.

Parameters

version?

string = "0"

Build identity for the extraction cache dir (SEA only).

Returns

Promise<LibNut>

Throws

If the platform has no libnut build, or the addon fails to open — on Linux that usually means X11 and XTest are missing (see the README).

Released under the MIT License.