diff options
| author | jussi | 2023-12-06 18:41:01 +0200 |
|---|---|---|
| committer | jussi | 2023-12-06 18:41:01 +0200 |
| commit | 6ecbbcc282bb25fae4bcd2e9f394adb74ac60ae7 (patch) | |
| tree | 8aead333dbeb5abc5deacdcbb243a5a1291c5079 /ReiLua_API.lua | |
| parent | 4a783a156e1ab6ea9a8b69cd75db6aa33bb6eefc (diff) | |
| download | reilua-enhanced-6ecbbcc282bb25fae4bcd2e9f394adb74ac60ae7.tar.gz reilua-enhanced-6ecbbcc282bb25fae4bcd2e9f394adb74ac60ae7.tar.bz2 reilua-enhanced-6ecbbcc282bb25fae4bcd2e9f394adb74ac60ae7.zip | |
Files management functions.
Diffstat (limited to 'ReiLua_API.lua')
| -rw-r--r-- | ReiLua_API.lua | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua index baccf5e..73217f9 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -1774,6 +1774,41 @@ function RL.SetGCUnload( enabled ) end -- Core - Files management functions +---Load file data as byte array (read). Buffer type is BUFFER_UNSIGNED_CHAR +---- Success return Buffer +---@param fileName string +---@return any buffer +function RL.LoadFileData( fileName ) end + +---Save data to file from byte array (write), returns true on success +---- Success return bool +---@param fileName string +---@param Buffer any +---@return any success +function RL.SaveFileData( fileName, Buffer ) end + +---Export data to code (.h), returns true on success +---- Success return bool +---@param buffer any +---@param fileName string +---@return any success +function RL.ExportDataAsCode( buffer, fileName ) end + +---Load text data from file (read) +---- Success return string +---@param fileName string +---@return any text +function RL.LoadFileText( fileName ) end + +---Save text data to file (write), returns true on success +---- Success return bool +---@param fileName string +---@param text string +---@return any success +function RL.SaveFileText( fileName, text ) end + +-- Core - Files system functions + ---Return game directory (where main.lua is located) ---- Success return string ---@return any path @@ -2379,7 +2414,7 @@ function RL.LoadBufferFromFile( path, int ) end ---@return any RL.UnloadBuffer function RL.UnloadBuffer( buffer ) end ----Get buffer data as table in the format is was stored +---Get buffer data as table in the format it was stored ---- Success return data{} ---@param buffer any ---@return any data @@ -2403,13 +2438,6 @@ function RL.GetBufferSize( buffer ) end ---@return any RL.ExportBuffer function RL.ExportBuffer( buffer, path ) end ----Export buffer data to code (.h), returns true on success ----- Success return bool ----@param buffer any ----@param fileName string ----@return any success -function RL.ExportBufferAsCode( buffer, fileName ) end - -- Shapes - Basic shapes drawing functions ---Set texture and rectangle to be used on shapes drawing |
