2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
12 #include "osregistry.h"
18 extern int game_main(const char *szCmdLine);
23 int main(int argc, char **argv)
30 for (i = 1; i < argc; i++) {
31 len += strlen(argv[i]) + 1;
35 argptr = (char *)malloc(len+5);
38 fprintf(stderr, "ERROR: out of memory in main!\n");
42 memset(argptr, 0, len+5);
44 for (i = 1; i < argc; i++) {
45 strcat(argptr, argv[i]);
51 retr = game_main(argptr);
53 mprintf(("ERROR!! Exception caught in main()"));
54 fprintf(stderr, "ERROR!! Exception caught in main()");