all repos — mgba @ 5450bd8d59dbd475f765c87bf428a2adcaeece94

mGBA Game Boy Advance Emulator

Force files into binary mode on Windows
Jeffrey Pfau jeffrey@endrift.com
Sat, 25 Oct 2014 01:45:42 -0700
commit

5450bd8d59dbd475f765c87bf428a2adcaeece94

parent

c7a1894a99aa7b96d1bef16110be2572002b5386

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/util/vfs.csrc/util/vfs.c

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