mirror of
https://github.com/AntonioND/nitro-engine.git
synced 2025-06-18 16:45:33 -04:00
library: Fix fseek() by changing the fopen() mode
fseek() seems to fail when the file is open in "rb+" mode. However, there is no reason to use this mode, and "rb" is enough.
This commit is contained in:
parent
95e6a16a89
commit
334c1aa9ab
@ -40,7 +40,7 @@ char *NE_FATLoadData(const char *filename)
|
||||
|
||||
size_t NE_FATFileSize(const char *filename)
|
||||
{
|
||||
FILE *f = fopen(filename, "rb+");
|
||||
FILE *f = fopen(filename, "rb");
|
||||
if (f == NULL)
|
||||
{
|
||||
NE_DebugPrint("%s could't be opened", filename);
|
||||
|
Loading…
Reference in New Issue
Block a user