summaryrefslogtreecommitdiffhomepage
path: root/src/utils.c
diff options
context:
space:
mode:
authorRob Loach <[email protected]>2021-04-03 02:56:42 -0400
committerGitHub <[email protected]>2021-04-03 08:56:42 +0200
commitd58b7b509e6954985304120945fb4063d0d68d7b (patch)
treeee94d05112c7883ca7b9ffc512e3e949809cc4c9 /src/utils.c
parentc21baf0d92c9a3ad44d46b698fb87d739dd64dc6 (diff)
downloadraylib-d58b7b509e6954985304120945fb4063d0d68d7b.tar.gz
raylib-d58b7b509e6954985304120945fb4063d0d68d7b.zip
Make SaveFile* callbacks return a boolean (#1697)
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/utils.c b/src/utils.c
index 9ef19b18..7912b876 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -245,8 +245,7 @@ bool SaveFileData(const char *fileName, void *data, unsigned int bytesToWrite)
{
if (saveFileData)
{
- saveFileData(fileName, data, bytesToWrite);
- return success;
+ return saveFileData(fileName, data, bytesToWrite);
}
#if defined(SUPPORT_STANDARD_FILEIO)
FILE *file = fopen(fileName, "wb");
@@ -340,8 +339,7 @@ bool SaveFileText(const char *fileName, char *text)
{
if (saveFileText)
{
- saveFileText(fileName, text);
- return success;
+ return saveFileText(fileName, text);
}
#if defined(SUPPORT_STANDARD_FILEIO)
FILE *file = fopen(fileName, "wt");