mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
add bindings for the qfs functions
This commit is contained in:
parent
616be68bdd
commit
804ba76719
3 changed files with 25 additions and 1 deletions
16
ruamoko/include/qfs.h
Normal file
16
ruamoko/include/qfs.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#ifndef __ruamoko_qfs_h
|
||||
#define __ruamoko_qfs_h
|
||||
|
||||
#include "qfile.h"
|
||||
|
||||
struct _qfslist_t = {};
|
||||
typedef struct _qfslist_t [] QFSlist;
|
||||
|
||||
@extern integer (string old, string new) QFS_Rename;
|
||||
@extern (void []) (string filename) QFS_LoadFile;
|
||||
@extern QFile (string filename) QFS_OpenFile;
|
||||
@extern integer (string filename, void [] buf, integer count) QFS_WriteFile;
|
||||
@extern QFSlist (string path, string ext, integer strip) QFS_Filelist;
|
||||
@extern void (QFSlist list) QFS_FilelistFree;
|
||||
|
||||
#endif//__ruamoko_qfs_h
|
|
@ -27,7 +27,7 @@ EXTRA_LIBRARIES= $(ruamoko_libs)
|
|||
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
|
||||
|
||||
libr_a_SOURCES=\
|
||||
cbuf.r cmd.r cvar.r file.r hash.r plist.r qfile.r string.r \
|
||||
cbuf.r cmd.r cvar.r file.r hash.r plist.r qfile.r qfs.r string.r \
|
||||
Object.r AutoreleasePool.r Array.r Entity.r List.r ListNode.r Stack.r
|
||||
libr_a_AR=$(PAK) -cf
|
||||
|
||||
|
|
8
ruamoko/lib/qfs.r
Normal file
8
ruamoko/lib/qfs.r
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "qfs.h"
|
||||
|
||||
integer (string old, string new) QFS_Rename = #0;
|
||||
(void []) (string filename) QFS_LoadFile = #0;
|
||||
QFile (string filename) QFS_OpenFile = #0;
|
||||
integer (string filename, void [] buf, integer count) QFS_WriteFile = #0;
|
||||
QFSlist (string path, string ext, integer strip) QFS_Filelist = #0;
|
||||
void (QFSlist list) QFS_FilelistFree = #0;
|
Loading…
Reference in a new issue