mirror of https://github.com/mgba-emu/mgba.git
Force files into binary mode on Windows
This commit is contained in:
parent
c7a1894a99
commit
5450bd8d59
|
@ -42,6 +42,9 @@ struct VFile* VFileOpen(const char* path, int flags) {
|
|||
if (!path) {
|
||||
return 0;
|
||||
}
|
||||
#ifdef _WIN32
|
||||
flags |= O_BINARY;
|
||||
#endif
|
||||
int fd = open(path, flags, 0666);
|
||||
return VFileFromFD(fd);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue