Merge branch 'master' of https://github.com/raysan5/raylib
This commit is contained in:
commit
4c9d2e719e
2 changed files with 4 additions and 6 deletions
|
@ -880,9 +880,9 @@ typedef enum {
|
||||||
// WARNING: This callbacks are intended for advance users
|
// WARNING: This callbacks are intended for advance users
|
||||||
typedef void (*TraceLogCallback)(int logLevel, const char *text, va_list args); // Logging: Redirect trace log messages
|
typedef void (*TraceLogCallback)(int logLevel, const char *text, va_list args); // Logging: Redirect trace log messages
|
||||||
typedef unsigned char* (*LoadFileDataCallback)(const char* fileName, unsigned int* bytesRead); // FileIO: Load binary data
|
typedef unsigned char* (*LoadFileDataCallback)(const char* fileName, unsigned int* bytesRead); // FileIO: Load binary data
|
||||||
typedef void (*SaveFileDataCallback)(const char *fileName, void *data, unsigned int bytesToWrite); // FileIO: Save binary data
|
typedef bool (*SaveFileDataCallback)(const char *fileName, void *data, unsigned int bytesToWrite); // FileIO: Save binary data
|
||||||
typedef char *(*LoadFileTextCallback)(const char* fileName); // FileIO: Load text data
|
typedef char *(*LoadFileTextCallback)(const char* fileName); // FileIO: Load text data
|
||||||
typedef void (*SaveFileTextCallback)(const char *fileName, char *text); // FileIO: Save text data
|
typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileIO: Save text data
|
||||||
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
|
|
@ -245,8 +245,7 @@ bool SaveFileData(const char *fileName, void *data, unsigned int bytesToWrite)
|
||||||
{
|
{
|
||||||
if (saveFileData)
|
if (saveFileData)
|
||||||
{
|
{
|
||||||
saveFileData(fileName, data, bytesToWrite);
|
return saveFileData(fileName, data, bytesToWrite);
|
||||||
return success;
|
|
||||||
}
|
}
|
||||||
#if defined(SUPPORT_STANDARD_FILEIO)
|
#if defined(SUPPORT_STANDARD_FILEIO)
|
||||||
FILE *file = fopen(fileName, "wb");
|
FILE *file = fopen(fileName, "wb");
|
||||||
|
@ -340,8 +339,7 @@ bool SaveFileText(const char *fileName, char *text)
|
||||||
{
|
{
|
||||||
if (saveFileText)
|
if (saveFileText)
|
||||||
{
|
{
|
||||||
saveFileText(fileName, text);
|
return saveFileText(fileName, text);
|
||||||
return success;
|
|
||||||
}
|
}
|
||||||
#if defined(SUPPORT_STANDARD_FILEIO)
|
#if defined(SUPPORT_STANDARD_FILEIO)
|
||||||
FILE *file = fopen(fileName, "wt");
|
FILE *file = fopen(fileName, "wt");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue