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:
parent
2297980427
commit
bfb9bbb371
2 changed files with 23 additions and 3 deletions
|
@ -51,9 +51,20 @@ BUILTIN(void, Con_Print, (char *text)); //on to main console.
|
||||||
#define ARGNAMES ,conname,text
|
#define ARGNAMES ,conname,text
|
||||||
BUILTIN(void, Con_SubPrint, (char *conname, char *text)); //on to named sub console (creating it too).
|
BUILTIN(void, Con_SubPrint, (char *conname, char *text)); //on to named sub console (creating it too).
|
||||||
#undef ARGNAMES
|
#undef ARGNAMES
|
||||||
|
|
||||||
#define ARGNAMES ,old,new
|
#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
|
#undef ARGNAMES
|
||||||
|
|
||||||
#define ARGNAMES ,message
|
#define ARGNAMES ,message
|
||||||
|
@ -317,7 +328,10 @@ void Plug_InitStandardBuiltins(void)
|
||||||
//sub consoles (optional)
|
//sub consoles (optional)
|
||||||
CHECKBUILTIN(Con_SubPrint);
|
CHECKBUILTIN(Con_SubPrint);
|
||||||
CHECKBUILTIN(Con_RenameSub);
|
CHECKBUILTIN(Con_RenameSub);
|
||||||
|
CHECKBUILTIN(Con_IsActive);
|
||||||
|
CHECKBUILTIN(Con_SetActive);
|
||||||
|
CHECKBUILTIN(Con_Destroy);
|
||||||
|
CHECKBUILTIN(Con_NameForNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef Q3_VM
|
#ifndef Q3_VM
|
||||||
|
|
|
@ -86,8 +86,14 @@ typedef void* funcptr_t;
|
||||||
//Basic builtins:
|
//Basic builtins:
|
||||||
EBUILTIN(funcptr_t, Plug_GetEngineFunction, (char *funcname)); //set up in vmMain, use this to get all other 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_Print, (char *text)); //on to main console.
|
||||||
|
|
||||||
EBUILTIN(void, Con_SubPrint, (char *subname, char *text)); //on to sub 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(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(void, Sys_Error, (char *message)); //abort the entire engine.
|
||||||
EBUILTIN(unsigned int, Sys_Milliseconds, ());
|
EBUILTIN(unsigned int, Sys_Milliseconds, ());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue