This commit is contained in:
zeromus 2008-08-13 08:45:45 +00:00
parent b67554f47b
commit 8217d5ceea
1 changed files with 1 additions and 0 deletions

View File

@ -305,6 +305,7 @@ FCEUFILE * FCEU_fopen(const char *path, const char *ipsfn, char *mode, char *ext
magic = fp->get(); magic = fp->get();
magic|=fp->get()<<8; magic|=fp->get()<<8;
magic|=fp->get()<<16; magic|=fp->get()<<16;
fp->seekg(0,std::ios::beg);
if(magic==0x088b1f) { if(magic==0x088b1f) {
// maybe gzip... // maybe gzip...