Core.fileLoad

From GiderosMobile
Revision as of 20:43, 25 March 2025 by MoKaLux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2025.3
Class: Core

Description

Optimized file loading.

Core.fileLoad(filename,options)

Parameters

filename: (string) path to the file to load from
options: (table) any of the following options:
async: (boolean) with async loading, default = false
compression: (boolean) with compression, default = false
buffer: (boolean) as buffer, default = false
mode: (string) file mode: "rb", ...

Operation can be made asynchronous to rendering loop, preventing dropping FPS in your games (async=true option). Only available if the call is made from an async call (see Core.asyncCall)