From e5b5aea998229afb50b08f340700dc9a5eb4e7be Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 26 Feb 2020 23:40:53 +0100 Subject: [PATCH] WARNING: RENAMED: Storage functions Renamed functions for consistency: - StorageLoadValue() > LoadStorageValue() - StorageSaveValue() > SaveStorageValue() --- src/core.c | 6 +++--- src/raylib.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core.c b/src/core.c index 559565dd..dcb26667 100644 --- a/src/core.c +++ b/src/core.c @@ -152,7 +152,7 @@ #endif #include // Required for: srand(), rand(), atexit() -#include // Required for: FILE, fopen(), fseek(), fread(), fwrite(), fclose() [Used in StorageSaveValue()/StorageLoadValue()] +#include // Required for: FILE, fopen(), fseek(), fread(), fwrite(), fclose() [Used in SaveStorageValue()/LoadStorageValue()] #include // Required for: strrchr(), strcmp(), strlen() #include // Required for: time() [Used in InitTimer()] #include // Required for: tan() [Used in BeginMode3D()] @@ -2179,7 +2179,7 @@ unsigned char *DecompressData(unsigned char *compData, int compDataLength, int * // Save integer value to storage file (to defined position) // NOTE: Storage positions is directly related to file memory layout (4 bytes each integer) -void StorageSaveValue(int position, int value) +void SaveStorageValue(int position, int value) { FILE *storageFile = NULL; @@ -2219,7 +2219,7 @@ void StorageSaveValue(int position, int value) // Load integer value from storage file (from defined position) // NOTE: If requested position could not be found, value 0 is returned -int StorageLoadValue(int position) +int LoadStorageValue(int position) { int value = 0; diff --git a/src/raylib.h b/src/raylib.h index e6ba4525..23ad8767 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -972,8 +972,8 @@ RLAPI unsigned char *CompressData(unsigned char *data, int dataLength, int *comp RLAPI unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *dataLength); // Decompress data (DEFLATE algorythm) // Persistent storage management -RLAPI void StorageSaveValue(int position, int value); // Save integer value to storage file (to defined position) -RLAPI int StorageLoadValue(int position); // Load integer value from storage file (from defined position) +RLAPI void SaveStorageValue(int position, int value); // Save integer value to storage file (to defined position) +RLAPI int LoadStorageValue(int position); // Load integer value from storage file (from defined position) RLAPI void OpenURL(const char *url); // Open URL with default system browser (if available)