mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-17 01:11:18 +00:00
couple of compile fixes for the webgl port
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4401 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
da322c528f
commit
4c3c8a2e64
3 changed files with 3 additions and 3 deletions
|
@ -218,7 +218,7 @@ int Sys_EnumerateFiles (const char *gpath, const char *match, int (*func)(const
|
||||||
}
|
}
|
||||||
#elif defined(linux) || defined(__unix__) || defined(__MACH__)
|
#elif defined(linux) || defined(__unix__) || defined(__MACH__)
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
int Sys_EnumerateFiles (const char *gpath, const char *match, int (*func)(const char *, int, void *, void *), void *parm, void *spath)
|
int Sys_EnumerateFiles (const char *gpath, const char *match, int (*func)(const char *, int, void *, searchpathfuncs_t *), void *parm, searchpathfuncs_t *spath)
|
||||||
{
|
{
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
char apath[MAX_OSPATH];
|
char apath[MAX_OSPATH];
|
||||||
|
|
|
@ -785,7 +785,7 @@ static qintptr_t VARGS Plug_Cmd_AddCommand(void *offset, quintptr_t mask, const
|
||||||
if (plugincommandarray[i].plugin == currentplug)
|
if (plugincommandarray[i].plugin == currentplug)
|
||||||
{
|
{
|
||||||
if (!strcmp(name, plugincommandarray[i].command))
|
if (!strcmp(name, plugincommandarray[i].command))
|
||||||
break;
|
return true; //already registered
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i == plugincommandarraylen)
|
if (i == plugincommandarraylen)
|
||||||
|
|
|
@ -141,7 +141,7 @@ static void DL_OnProgress(void *c, int position, int totalsize)
|
||||||
}
|
}
|
||||||
|
|
||||||
//this becomes a poll function. the main thread will call this once a frame or so.
|
//this becomes a poll function. the main thread will call this once a frame or so.
|
||||||
qboolean HTTPDL_Decide(struct dl_download *dl)
|
qboolean DL_Decide(struct dl_download *dl)
|
||||||
{
|
{
|
||||||
const char *url = dl->redir;
|
const char *url = dl->redir;
|
||||||
if (!*url)
|
if (!*url)
|
||||||
|
|
Loading…
Reference in a new issue