From 8217d5ceeac48daaca83ec5c80d57cae1f7d1be4 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 13 Aug 2008 08:45:45 +0000 Subject: [PATCH] fix --- src/file.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/file.cpp b/src/file.cpp index c9fb7c59..da050d1e 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -305,6 +305,7 @@ FCEUFILE * FCEU_fopen(const char *path, const char *ipsfn, char *mode, char *ext magic = fp->get(); magic|=fp->get()<<8; magic|=fp->get()<<16; + fp->seekg(0,std::ios::beg); if(magic==0x088b1f) { // maybe gzip...