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:
Antonio Niño Díaz 2023-11-12 01:22:10 +00:00
parent 95e6a16a89
commit 334c1aa9ab

View File

@ -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);