Added some additional sub-console functions.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1720 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-12-16 18:08:40 +00:00
parent 2297980427
commit bfb9bbb371
2 changed files with 23 additions and 3 deletions

View file

@ -51,9 +51,20 @@ BUILTIN(void, Con_Print, (char *text)); //on to main console.
#define ARGNAMES ,conname,text
BUILTIN(void, Con_SubPrint, (char *conname, char *text)); //on to named sub console (creating it too).
#undef ARGNAMES
#define ARGNAMES ,old,new
BUILTIN(void, Con_RenameSub, (char *old, char *new)); //on to named sub console (creating it too).
BUILTIN(void, Con_RenameSub, (char *old, char *new)); //rename a subconsole
#undef ARGNAMES
#define ARGNAMES ,conname
BUILTINR(int, Con_IsActive, (char *conname));
#undef ARGNAMES
#define ARGNAMES ,conname
BUILTIN(void, Con_SetActive, (char *conname));
#undef ARGNAMES
#define ARGNAMES ,conname
BUILTIN(void, Con_Destroy, (char *conname));
#undef ARGNAMES
#define ARGNAMES ,connum,conname,connamelen
BUILTIN(void, Con_NameForNum, (int connum, char *conname, int connamelen));
#undef ARGNAMES
#define ARGNAMES ,message
@ -317,7 +328,10 @@ void Plug_InitStandardBuiltins(void)
//sub consoles (optional)
CHECKBUILTIN(Con_SubPrint);
CHECKBUILTIN(Con_RenameSub);
CHECKBUILTIN(Con_IsActive);
CHECKBUILTIN(Con_SetActive);
CHECKBUILTIN(Con_Destroy);
CHECKBUILTIN(Con_NameForNum);
}
#ifndef Q3_VM

View file

@ -86,8 +86,14 @@ typedef void* funcptr_t;
//Basic builtins:
EBUILTIN(funcptr_t, Plug_GetEngineFunction, (char *funcname)); //set up in vmMain, use this to get all other builtins
EBUILTIN(void, Con_Print, (char *text)); //on to main console.
EBUILTIN(void, Con_SubPrint, (char *subname, char *text)); //on to sub console.
EBUILTIN(void, Con_RenameSub, (char *old, char *new)); //rename a console.
EBUILTIN(int, Con_IsActive, (char *conname));
EBUILTIN(void, Con_SetActive, (char *conname));
EBUILTIN(void, Con_Destroy, (char *conname));
EBUILTIN(void, Con_NameForNum, (int connum, char *conname, int connamelen));
EBUILTIN(void, Sys_Error, (char *message)); //abort the entire engine.
EBUILTIN(unsigned int, Sys_Milliseconds, ());