Package: gio

Function gio:resource-load

Lambda List

gio:resource-load (path)

Arguments

path -- a pathname or namestring with the path of a file to load, in the GLib filenname encoding

Return Value

The new g:resource instance.

Details

Loads a binary resource bundle and creates a g:resource instance representation of it, allowing you to query it for data. If you want to use this resource in the global resource namespace you need to register it with the g:resources-register function. The function signals an error if the resource file does not exist.
 

See also

2024-11-21