From 648a82b3a32a1be6fb415b1fc562fa185b931d8c Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 28 Feb 2020 00:12:19 +0100 Subject: Update raylib_core.c --- cheatsheet/raylib_core.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cheatsheet/raylib_core.c b/cheatsheet/raylib_core.c index b23acff..377c4ec 100644 --- a/cheatsheet/raylib_core.c +++ b/cheatsheet/raylib_core.c @@ -82,7 +82,9 @@ void TakeScreenshot(const char *fileName); // Takes a screenshot of current screen (saved a .png) int GetRandomValue(int min, int max); // Returns a random value between min and max (both included) - // Files management functions + // Files management functions + unsigned char *LoadFileData(const char *fileName, int *bytesRead); // Load file data as byte array (read) + void SaveFileData(const char *fileName, void *data, int bytesToWrite); // Save data to file from byte array (write) bool FileExists(const char *fileName); // Check if file exists bool IsFileExtension(const char *fileName, const char *ext); // Check file extension bool DirectoryExists(const char *dirPath); // Check if a directory path exists @@ -104,8 +106,8 @@ unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *dataLength); // Decompress data (DEFLATE algorythm) // Persistent storage management - void StorageSaveValue(int position, int value); // Save integer value to storage file (to defined position) - int StorageLoadValue(int position); // Load integer value from storage file (from defined position) + int LoadStorageValue(int position); // Load integer value from storage file (from defined position) + void SaveStorageValue(int position, int value); // Save integer value to storage file (to defined position) void OpenURL(const char *url); // Open URL with default system browser (if available) -- cgit v1.2.3