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(namebuffer, ROM_ITEM_DESCNOTAVAILABLE);
|
||||||
lstrcpy(sizebuffer, TEXT("? Mbits"));
|
lstrcpy(sizebuffer, TEXT("? Mbits"));
|
||||||
|
|
||||||
|
#ifdef ZLIB
|
||||||
if(IsCompressed(filename))
|
if(IsCompressed(filename))
|
||||||
{
|
{
|
||||||
unzFile uf = unzOpen(_tToChar(filename));
|
unzFile uf = unzOpen(_tToChar(filename));
|
||||||
@ -5143,6 +5144,7 @@ void rominfo(const TCHAR *filename, TCHAR *namebuffer, TCHAR *sizebuffer)
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
struct _stat filestats;
|
struct _stat filestats;
|
||||||
_tstat(filename, &filestats);
|
_tstat(filename, &filestats);
|
||||||
|
Loading…
Reference in New Issue
Block a user