@ -2226,19 +2226,18 @@ void SaveStorageValue(unsigned int position, int value)
else
{
//RL_REALLOCfailed
TRACELOG(LOG_WARNING,"FILEIO: Position in bytes (%u) bigger than actual size of file [%s] (%u) Realloc function FAIL",position*sizeof(int),path,dataSize);
TRACELOG(LOG_WARNING,"FILEIO: [%s] Failed to realloc data (%u), position in bytes (%u) bigger than actual file size",path,dataSize,position*sizeof(int));
//Westoretheoldsizeofthefile.
newFileData=fileData;
newDataSize=dataSize;
//Westoretheoldsizeofthefile
newFileData=fileData;
newDataSize=dataSize;
}
}
else
{
//Westoretheoldsizeofthefile.
newFileData=fileData;
newDataSize=dataSize;
//Storetheoldsizeofthefile
newFileData=fileData;
newDataSize=dataSize;
//Replacevalueonselectedposition
int*dataPtr=(int*)newFileData;
@ -2250,7 +2249,8 @@ void SaveStorageValue(unsigned int position, int value)
}
else
{
TRACELOG(LOG_INFO,"FILEIO: [%s] File not found, creating it.",path);
TRACELOG(LOG_INFO,"FILEIO: [%s] File not found, creating it",path);