threaded loading code and associated/extensive tweaks.

unified image loading code a little between renderers.
support switching worldmodel in csqc. also associated bugfixes.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4758 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-10-05 20:04:11 +00:00
parent 8d72e19726
commit 7f6c2054d9
172 changed files with 9730 additions and 10862 deletions

View file

@ -194,6 +194,11 @@ BUILTIN(void, Menu_Control, (int mnum));
BUILTINR(int, Key_GetKeyCode, (char *keyname));
#undef ARGNAMES
#if !defined(Q3_VM) && defined(FTEPLUGIN)
#define ARGNAMES ,name,handle,mode
BUILTINR(qboolean, VFS_Open, (char *name, vfsfile_t **handle, char *mode));//opens a direct vfs file. no access checks, and so can be used in threaded plugins
#undef ARGNAMES
#endif
#define ARGNAMES ,name,handle,mode
BUILTINR(int, FS_Open, (char *name, qhandle_t *handle, int mode));
#undef ARGNAMES
@ -350,6 +355,9 @@ void Plug_InitStandardBuiltins(void)
CHECKBUILTIN(Cvar_Update);
//file system
#if !defined(Q3_VM) && defined(FTEPLUGIN)
CHECKBUILTIN(VFS_Open);
#endif
CHECKBUILTIN(FS_Open);
CHECKBUILTIN(FS_Read);
CHECKBUILTIN(FS_Write);