diff options
| author | Ray <[email protected]> | 2020-02-28 00:12:19 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-28 00:12:19 +0100 |
| commit | 648a82b3a32a1be6fb415b1fc562fa185b931d8c (patch) | |
| tree | 8b63492f6947f6596ae0481a36d989291a8db1d0 | |
| parent | e62d5c78c10fa9e8b75661134d960c316645d632 (diff) | |
| download | raylib.com-648a82b3a32a1be6fb415b1fc562fa185b931d8c.tar.gz raylib.com-648a82b3a32a1be6fb415b1fc562fa185b931d8c.zip | |
Update raylib_core.c
| -rw-r--r-- | cheatsheet/raylib_core.c | 8 |
1 files 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) |
