mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-30 15:41:12 +00:00
JS stuff
This commit is contained in:
parent
66a503a900
commit
01b619d53d
1 changed files with 8 additions and 1 deletions
9
main.c
9
main.c
|
@ -453,14 +453,21 @@ int main(int argc, char **argv) {
|
|||
printf("Mode: manual\n");
|
||||
printf("There are %lu items to compile:\n", (unsigned long)items_elements);
|
||||
for (itr = 0; itr < items_elements; ++itr) {
|
||||
#ifndef JS
|
||||
printf(" item: %s (%s)\n",
|
||||
items_data[itr].filename,
|
||||
( (items_data[itr].type == TYPE_QC ? "qc" :
|
||||
(items_data[itr].type == TYPE_ASM ? "asm" :
|
||||
(items_data[itr].type == TYPE_SRC ? "progs.src" :
|
||||
("unknown"))))));
|
||||
#endif
|
||||
|
||||
if (!parser_compile_file(items_data[itr].filename)) {
|
||||
#ifdef JS
|
||||
if (!parser_compile_string("js.qc", items_data[itr].filename))
|
||||
#else
|
||||
if (!parser_compile_file(items_data[itr].filename))
|
||||
#endif
|
||||
{
|
||||
retval = 1;
|
||||
goto cleanup;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue