mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-06 16:01:10 +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
|
*.la
|
||||||
*.lo
|
*.lo
|
||||||
.deps
|
.deps
|
||||||
|
@ -5,3 +7,5 @@
|
||||||
.vimrc
|
.vimrc
|
||||||
Makefile
|
Makefile
|
||||||
Makefile.in
|
Makefile.in
|
||||||
|
progdefs.h
|
||||||
|
qwaq
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
EXE=qctest
|
EXE=qwaq
|
||||||
|
|
||||||
MAKEDEPS=$(CC) -MM $(CPPFLAGS) $< | sed -e 's/$*\.o:*/$*\.o $@:/g' > $@
|
MAKEDEPS=$(CC) -MM $(CPPFLAGS) $< | sed -e 's/$*\.o:*/$*\.o $@:/g' > $@
|
||||||
|
|
||||||
|
|
|
@ -31,19 +31,19 @@ main ()
|
||||||
PR_Init ();
|
PR_Init ();
|
||||||
BI_Init (&progs);
|
BI_Init (&progs);
|
||||||
|
|
||||||
f = fopen ("qctest.dat", "rb");
|
f = fopen ("qwaq.dat", "rb");
|
||||||
if (f) {
|
if (f) {
|
||||||
fseek (f, 0, SEEK_END);
|
fseek (f, 0, SEEK_END);
|
||||||
len = ftell (f);
|
len = ftell (f);
|
||||||
fseek (f, 0, SEEK_SET);
|
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);
|
fread (progs.progs, 1, len, f);
|
||||||
fclose (f);
|
fclose (f);
|
||||||
if (progs.progs)
|
if (progs.progs)
|
||||||
PR_LoadProgs (&progs, 0);
|
PR_LoadProgs (&progs, 0);
|
||||||
}
|
}
|
||||||
if (!progs.progs)
|
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");
|
main_func = PR_GetFunctionIndex (&progs, "main");
|
||||||
PR_ExecuteProgram (&progs, main_func);
|
PR_ExecuteProgram (&progs, main_func);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
qctest.dat
|
qwaq.dat
|
||||||
|
|
||||||
defs.qc
|
defs.qc
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue