lightgun-poc / lib/native / extractNative
Function: extractNative()
extractNative(
dir,names,read,fsLike?):string
Defined in: lib/native.ts:86
Writes names into dir and returns the path of the first one (the addon).
A file of the right size is left alone: relaunches must be cheap, and on Windows a running second instance holds an exclusive lock on the loaded DLLs — overwriting would fail for no benefit. A write that fails while the file already exists is likewise tolerated for that reason.
Parameters
dir
string
names
string[]
read
(name) => Buffer
fsLike?
FsLike = fs
Returns
string