Fix soundOpenData flags

This commit is contained in:
Alexander Batalov 2023-04-11 17:27:34 +03:00
parent 69e4adf5b3
commit 11472e8be9
1 changed files with 9 additions and 1 deletions

View File

@ -225,7 +225,15 @@ static int soundReadData(int fileHandle, void* buf, unsigned int size)
// 0x4AC768
static int soundOpenData(const char* filePath, int* channels, int* sampleRate)
{
return open(filePath, _O_RDONLY | _O_BINARY);
int flags;
#ifdef _WIN32
flags = _O_RDONLY | _O_BINARY;
#else
flags = O_RDONLY;
#endif
return open(filePath, flags);
}
// 0x4AC774