From 5925b937db0bb4a178884f559898b11bbf53189b Mon Sep 17 00:00:00 2001 From: evilynux Date: Wed, 14 Feb 2007 04:47:16 +0000 Subject: [PATCH] All reads are binary in libfat, doing the same here. --- desmume/src/cflash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/cflash.c b/desmume/src/cflash.c index 1f24c3b42..b06387852 100644 --- a/desmume/src/cflash.c +++ b/desmume/src/cflash.c @@ -522,7 +522,7 @@ u16 fread_buffered(int dirent,u32 cluster,u32 offset) { fatstring_to_asciiz(dirent,fname,NULL); strncat(fpath,fname,256-strlen(fpath)); - hFile = fopen(fpath, "r"); + hFile = fopen(fpath, "rb"); if (!hFile) return 0; fread(&freadBuffer, 1, 512, hFile);