ADDED: Some functions...
text: IsEqualText() -WIP- audio: SaveWAV() audio: ExportWaveAsCode() textures: ExportImageAsCode()
This commit is contained in:
parent
78064dee09
commit
298203a41a
1 changed files with 204 additions and 97 deletions
|
|
@ -1766,11 +1766,11 @@ void StorageSaveValue(int position, int value)
|
|||
int fileSize = ftell(storageFile); // Size in bytes
|
||||
fseek(storageFile, 0, SEEK_SET);
|
||||
|
||||
if (fileSize < (position*4)) TraceLog(LOG_WARNING, "Storage position could not be found");
|
||||
if (fileSize < (position*sizeof(int))) TraceLog(LOG_WARNING, "Storage position could not be found");
|
||||
else
|
||||
{
|
||||
fseek(storageFile, (position*4), SEEK_SET);
|
||||
fwrite(&value, 1, 4, storageFile);
|
||||
fseek(storageFile, (position*sizeof(int)), SEEK_SET);
|
||||
fwrite(&value, 1, sizeof(int), storageFile);
|
||||
}
|
||||
|
||||
fclose(storageFile);
|
||||
|
|
|
|||
Loading…
Reference in a new issue