summaryrefslogtreecommitdiff
path: root/ReiLua_API.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ReiLua_API.lua')
-rw-r--r--ReiLua_API.lua44
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