Core.fileSave

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 saving.

Core.fileSave(filename,data,options)

Parameters

filename: (string) path to the file to save to
data: (string) a lua string or a lua buffer (buffer=true option when loading)
options: (table) any of the following options:
async: (boolean) with async loading, default = false
compression: (boolean) with compression, default = false
mode: (string) file mode: "wb", ...

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)