------------------------------------------------------------------------

r4189 | acceptthis | 2013-02-05 12:54:29 +0000 (Tue, 05 Feb 2013) | 1 line

clipboard, icon, fullscreen support for glx. Numerous fixes for compile-time warnings.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4187 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-03-12 22:47:42 +00:00
parent 5c108ea81f
commit 0ecf71adaf
57 changed files with 815 additions and 370 deletions

View file

@ -145,28 +145,40 @@ local int unzlocal_getShortSane(vfsfile_t *fin, unsigned short *pi)
}
}
local int unzlocal_getShort(vfsfile_t *fin,unsigned long *pi) {
unsigned short c;
local int unzlocal_getShort(vfsfile_t *fin,unsigned long *pi)
{
unsigned short c;
int err = VFS_READ(fin, &c, 2);
if (err==2) {
*pi = LittleShort(c);
return UNZ_OK;
} else {
if (VFS_TELL(fin) != VFS_GETLEN(fin)) return UNZ_ERRNO;
else return UNZ_EOF;
}
if (err==2)
{
*pi = LittleShort(c);
return UNZ_OK;
}
else
{
*pi = 0;
if (VFS_TELL(fin) != VFS_GETLEN(fin)) return UNZ_ERRNO;
else return UNZ_EOF;
}
}
local int unzlocal_getLong(vfsfile_t *fin,unsigned long *pi) {
local int unzlocal_getLong(vfsfile_t *fin,unsigned long *pi)
{
unsigned int c;
int err = VFS_READ(fin, &c, 4);
if (err==4) {
*pi = LittleLong(c);
return UNZ_OK;
} else {
if (VFS_TELL(fin) != VFS_GETLEN(fin)) return UNZ_ERRNO;
else return UNZ_EOF;
}
if (err==4)
{
*pi = LittleLong(c);
return UNZ_OK;
}
else
{
*pi = 0;
if (VFS_TELL(fin) != VFS_GETLEN(fin))
return UNZ_ERRNO;
else
return UNZ_EOF;
}
}