FreeBSD Manual Pages
resource(3) Arcan Lua API resource(3) NAME resource - Check if the requested resource path exists. SYNOPSIS longname. typedescr resource( name, domain ) DESCRIPTION This function tries to resolve the path description indicated by name and optionally filtered by domain. The accepted domain values follow the same rules as other resource related functions, see glob_resource . By default, all user- accessible domains are scanned and the resolved result (or nil) is returned as longname . typedescr will be set to "folder", "file" or "not found". EXAMPLE function resource0() print( resource("images/icons/arcanicon.png") ); print( resource("test.png", APPL_RESOURCE) ); end resource April 2022 resource(3)
NAME | SYNOPSIS | DESCRIPTION | EXAMPLE
Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=resource&manpath=FreeBSD+13.1-RELEASE+and+Ports>