mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
s/qctest/qwaq/ and update .gitignore
This commit is contained in:
parent
8a23ae0a48
commit
e3e4915c03
4 changed files with 9 additions and 5 deletions
4
tools/qwaq/.gitignore
vendored
4
tools/qwaq/.gitignore
vendored
|
@ -1,3 +1,5 @@
|
|||
*.d
|
||||
#.dat
|
||||
*.la
|
||||
*.lo
|
||||
.deps
|
||||
|
@ -5,3 +7,5 @@
|
|||
.vimrc
|
||||
Makefile
|
||||
Makefile.in
|
||||
progdefs.h
|
||||
qwaq
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
EXE=qctest
|
||||
EXE=qwaq
|
||||
|
||||
MAKEDEPS=$(CC) -MM $(CPPFLAGS) $< | sed -e 's/$*\.o:*/$*\.o $@:/g' > $@
|
||||
|
||||
|
|
|
@ -31,19 +31,19 @@ main ()
|
|||
PR_Init ();
|
||||
BI_Init (&progs);
|
||||
|
||||
f = fopen ("qctest.dat", "rb");
|
||||
f = fopen ("qwaq.dat", "rb");
|
||||
if (f) {
|
||||
fseek (f, 0, SEEK_END);
|
||||
len = ftell (f);
|
||||
fseek (f, 0, SEEK_SET);
|
||||
progs.progs = Hunk_AllocName (len, "qctest.dat");
|
||||
progs.progs = Hunk_AllocName (len, "qwaq.dat");
|
||||
fread (progs.progs, 1, len, f);
|
||||
fclose (f);
|
||||
if (progs.progs)
|
||||
PR_LoadProgs (&progs, 0);
|
||||
}
|
||||
if (!progs.progs)
|
||||
Sys_Error ("couldn't load %s\n", "qctest.dat");
|
||||
Sys_Error ("couldn't load %s\n", "qwaq.dat");
|
||||
main_func = PR_GetFunctionIndex (&progs, "main");
|
||||
PR_ExecuteProgram (&progs, main_func);
|
||||
return 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
qctest.dat
|
||||
qwaq.dat
|
||||
|
||||
defs.qc
|
||||
|
||||
|
|
Loading…
Reference in a new issue