mirror of https://github.com/snes9xgit/snes9x.git
Merge pull request #12 from bl0ckeduser/patch-5
Win32: only use zlib if it is turned on
This commit is contained in:
commit
33cdfd8806
|
@ -5104,6 +5104,7 @@ void rominfo(const TCHAR *filename, TCHAR *namebuffer, TCHAR *sizebuffer)
|
|||
lstrcpy(namebuffer, ROM_ITEM_DESCNOTAVAILABLE);
|
||||
lstrcpy(sizebuffer, TEXT("? Mbits"));
|
||||
|
||||
#ifdef ZLIB
|
||||
if(IsCompressed(filename))
|
||||
{
|
||||
unzFile uf = unzOpen(_tToChar(filename));
|
||||
|
@ -5143,6 +5144,7 @@ void rominfo(const TCHAR *filename, TCHAR *namebuffer, TCHAR *sizebuffer)
|
|||
}
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
struct _stat filestats;
|
||||
_tstat(filename, &filestats);
|
||||
|
|
Loading…
Reference in New Issue