diff options
| author | RGDTAB <[email protected]> | 2022-11-04 15:39:04 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-04 20:39:04 +0100 |
| commit | dbdfad7ace061931da701070c5c7fbe772c57725 (patch) | |
| tree | 70f5c30e8b03f9c27d63e044587e5498e6558528 /src/raylib.h | |
| parent | 1cb81e3f4c30479d2d5e2194e7bf332ded750554 (diff) | |
| download | raylib-dbdfad7ace061931da701070c5c7fbe772c57725.tar.gz raylib-dbdfad7ace061931da701070c5c7fbe772c57725.zip | |
Fix ExportDataAsCode() data types (#2787)
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index dc027591..11010f14 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1058,7 +1058,7 @@ RLAPI void SetSaveFileTextCallback(SaveFileTextCallback callback); // Set custom RLAPI unsigned char *LoadFileData(const char *fileName, unsigned int *bytesRead); // Load file data as byte array (read) RLAPI void UnloadFileData(unsigned char *data); // Unload file data allocated by LoadFileData() RLAPI bool SaveFileData(const char *fileName, void *data, unsigned int bytesToWrite); // Save data to file from byte array (write), returns true on success -RLAPI bool ExportDataAsCode(const char *data, unsigned int size, const char *fileName); // Export data to code (.h), returns true on success +RLAPI bool ExportDataAsCode(const unsigned char *data, unsigned int size, const char *fileName); // Export data to code (.h), returns true on success RLAPI char *LoadFileText(const char *fileName); // Load text data from file (read), returns a '\0' terminated string RLAPI void UnloadFileText(char *text); // Unload file text data allocated by LoadFileText() RLAPI bool SaveFileText(const char *fileName, char *text); // Save text data to file (write), string must be '\0' terminated, returns true on success |
