resource(3)
π NAME π
okay so bestie, welcome to resource(3) β this is the Arcan Lua API, and the whole vibe is: check if the requested resource path exists. Thatβs it. Thatβs the assignment. π
π§ SYNOPSIS π§
longname. typedescr
resource( string:name )
resource( string:name, int:domain )
π₯ DESCRIPTION π₯
so this function tries to resolve the path description indicated by name, and it can optionally be filtered by domain. no cap.
the accepted domain values follow the same rules as other resource related functions β see glob_resource for that whole situation. π
by default, all user-accessible domains are scanned, and the resolved result (or nil) is returned as longname. typedescr will be set to "directory", "file" or "not found". literally that simple, fr fr. β¨
π EXAMPLE π
like, hereβs the code vibe check:
function resource0()
print( resource("images/icons/arcanicon.png") );
print( resource("test.png", APPL_RESOURCE) );
end
cute little sign-off: this page is the resource manual from the Arcan Lua API, dated October 2026, and it lives at resource(3) β mwah, go check those paths bestie π«Άππ
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms