sdl2 support.

hacky rendertarget stuff. not polished. don't use except for testing. feedback desired.
switched file system to use a qofs_t type instead. define FS_64BIT to make it 64bit (standard on 64bit cpus).
rewrote zip support, ditching unzip.c. this provided zip64 support, and unicode in zips.
changed local address enumeration to not be so stupid.
updated ode support a little to match some dp features.
changed fs_cache scheme, to not rebuild needlessly.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4596 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-02-07 08:38:40 +00:00
parent b9e46e4fa6
commit 1bb752b582
116 changed files with 3885 additions and 5423 deletions

View file

@ -338,7 +338,7 @@ static qboolean HTTP_DL_Work(struct dl_download *dl)
if (ammount < 0)
{
if (qerrno != EWOULDBLOCK)
if (neterrno() != NET_EWOULDBLOCK)
return false;
return true;
}
@ -358,7 +358,7 @@ static qboolean HTTP_DL_Work(struct dl_download *dl)
return false;
if (ammount < 0)
{
if (qerrno != EWOULDBLOCK)
if (neterrno() != NET_EWOULDBLOCK)
return false;
return true;
}
@ -554,7 +554,7 @@ static qboolean HTTP_DL_Work(struct dl_download *dl)
ammount = recv(con->sock, con->buffer+con->bufferused, con->bufferlen-con->bufferused-1, 0);
if (ammount < 0)
{
if (qerrno != EWOULDBLOCK)
if (neterrno() != NET_EWOULDBLOCK)
return false;
return true;
}
@ -1029,7 +1029,7 @@ void QDECL VFSPIPE_Close(vfsfile_t *f)
free(p->data);
free(p);
}
unsigned long QDECL VFSPIPE_GetLen(vfsfile_t *f)
qofs_t QDECL VFSPIPE_GetLen(vfsfile_t *f)
{
vfspipe_t *p = (vfspipe_t*)f;
return p->writepos - p->readpos;