Function ul_next_sys::ulPlatformSetFileSystem
source · pub unsafe extern "C" fn ulPlatformSetFileSystem(
file_system: ULFileSystem,
)
Expand description
Set a custom FileSystem implementation.
The library uses this to load all file URLs (eg, file:///page.html).
You can provide the library with your own FileSystem implementation so that file assets are loaded from your own pipeline.
You should call this before ulCreateRenderer() or ulCreateApp().
@warning This is required to be defined before calling ulCreateRenderer()
@note ulCreateApp() will use the default platform file system if you never call this.
@note If you’re not using ulCreateApp(), (eg, using ulCreateRenderer()) you can still use the default platform file system by calling ulEnablePlatformFileSystem()’ (@see <AppCore/CAPI.h>)