Codename LogoCodename Logo

funkin.backend.utils.NdllUtil

APIWiki

Small util that allows you to load any function from ndlls via getFunction.

NDLLs must be in your mod's "ndlls" folder, and must follow this name scheme: - name-windows.ndll for Windows targeted ndlls - name-linux.ndll for Linux targeted ndlls - name-mac.ndll for Mac targeted ndlls

If: - The platform does not support NDLLs - The NDLL is not found - The Function cannot be found in the NDLL then an empty function will be returned instead, and a message will be shown in logs.

Static variables

View in GitHub

@:value("windows")staticfinalread onlyos:String = "windows"

Static methods

View in GitHub

staticgetFunction(ndll:String, name:String, args:Int):Dynamic

Returns an function from a Haxe NDLL. Limited to 25 argument due to a limitation

Parameters:

ndll

Name of the NDLL.

name

Name of the function.

args

Number of arguments of that function.

View in GitHub

staticgetFunctionFromPath(ndll:String, name:String, args:Int):Dynamic

Returns an function from a Haxe NDLL at specified path.

Parameters:

ndll

Asset path to the NDLL.

name

Name of the function.

args

Number of arguments of that function.