diff options
| author | raysan5 <[email protected]> | 2021-04-04 14:59:29 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-04-04 14:59:29 +0200 |
| commit | 4c9d2e719ef3a0d1c9c03ca30d6d06d4a85f7d1f (patch) | |
| tree | e09278f5b62428439363a2a63176147831d775ff /src/utils.c | |
| parent | 66f3434571af00d945a2dcc4f0ed734afe6973d8 (diff) | |
| parent | d58b7b509e6954985304120945fb4063d0d68d7b (diff) | |
| download | raylib-4c9d2e719ef3a0d1c9c03ca30d6d06d4a85f7d1f.tar.gz raylib-4c9d2e719ef3a0d1c9c03ca30d6d06d4a85f7d1f.zip | |
Merge branch 'master' of https://github.com/raysan5/raylib
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 6 |
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"); |
