mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
Add QFile_GetHandle()
This allows other rua builtins to make use of ruamoko files.
This commit is contained in:
parent
857f8eb6e4
commit
defc2a264b
2 changed files with 9 additions and 0 deletions
|
@ -56,6 +56,7 @@ void RUA_String_Init (struct progs_s *pr, int secure);
|
|||
|
||||
void RUA_QFile_Init (struct progs_s *pr, int secure);
|
||||
int QFile_AllocHandle (struct progs_s *pr, QFile *file);
|
||||
QFile *QFile_GetFile (struct progs_s *pr, int handle);
|
||||
|
||||
void RUA_QFS_Init (struct progs_s *pr, int secure);
|
||||
|
||||
|
|
|
@ -174,6 +174,14 @@ get_handle (progs_t *pr, const char *name, int handle)
|
|||
return h;
|
||||
}
|
||||
|
||||
QFile *
|
||||
QFile_GetFile (progs_t *pr, int handle)
|
||||
{
|
||||
qfile_t *h = get_handle (pr, __FUNCTION__, handle);
|
||||
|
||||
return h->file;
|
||||
}
|
||||
|
||||
static void
|
||||
bi_Qclose (progs_t *pr)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue