mirror of https://github.com/snes9xgit/snes9x.git
Win32: only use zlib if it is turned on
This commit is contained in:
parent
2e275c4599
commit
cd2715e3a4
|
@ -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