Make SaveFile* callbacks return a boolean (#1697)
This commit is contained in:
parent
c21baf0d92
commit
d58b7b509e
2 changed files with 4 additions and 6 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue