Rev 298 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 298 | Rev 300 | ||
---|---|---|---|
Line 631... | Line 631... | ||
631 | char* plutoniawad; |
631 | char* plutoniawad; |
632 | char* tntwad; |
632 | char* tntwad; |
Line 633... | Line 633... | ||
633 | 633 | ||
634 | char *home; |
634 | char *home; |
635 | char *doomwaddir; |
635 | char *doomwaddir; |
636 | doomwaddir = getenv("DOOMWADDIR"); |
636 | // doomwaddir = getenv("DOOMWADDIR"); |
637 | if (!doomwaddir) |
637 | // if (!doomwaddir) |
Line 638... | Line 638... | ||
638 | doomwaddir = "."; |
638 | doomwaddir = "."; |
639 | 639 | ||
640 | // Commercial. |
640 | // Commercial. |
Line 664... | Line 664... | ||
664 | 664 | ||
665 | // French stuff. |
665 | // French stuff. |
666 | doom2fwad = malloc(strlen(doomwaddir)+1+10+1); |
666 | doom2fwad = malloc(strlen(doomwaddir)+1+10+1); |
Line 667... | Line 667... | ||
667 | sprintf(doom2fwad, "%s/doom2f.wad", doomwaddir); |
667 | sprintf(doom2fwad, "%s/doom2f.wad", doomwaddir); |
668 | 668 | ||
669 | home = getenv("HOME"); |
669 | // home = getenv("HOME"); |
670 | if (!home) |
670 | // if (!home) |
Line 671... | Line 671... | ||
671 | home = "."; |
671 | home = "."; |
672 | sprintf(basedefault, "%s/doomrc.txt", home); |
672 | sprintf(basedefault, "%s/doomrc.txt", home); |
Line 859... | Line 859... | ||
859 | 859 | ||
Line 860... | Line 860... | ||
860 | IdentifyVersion (); |
860 | IdentifyVersion (); |
Line 861... | Line 861... | ||
861 | 861 | ||
862 | // I_BeginSplash(); |
862 | // I_BeginSplash(); |
Line 863... | Line 863... | ||
863 | 863 | ||
864 | setbuf (stdout, NULL); |
864 | // setbuf (stdout, NULL); |
865 | modifiedgame = false; |
865 | modifiedgame = false; |
Line 1100... | Line 1100... | ||
1100 | } |
1100 | } |
Line 1101... | Line 1101... | ||
1101 | 1101 | ||
1102 | // Iff additonal PWAD files are used, print modified banner |
1102 | // Iff additonal PWAD files are used, print modified banner |
1103 | if (modifiedgame) |
1103 | if (modifiedgame) |
1104 | { |
1104 | { |
1105 | // __libclog_printf ( |
1105 | printf ( |
1106 | // "===========================================================================\n" |
1106 | "===========================================================================\n" |
1107 | // "ATTENTION: This version of DOOM has been modified. If you would like to\n" |
1107 | "ATTENTION: This version of DOOM has been modified. If you would like to\n" |
1108 | // "get a copy of the original game, call 1-800-IDGAMES or see the readme file.\n" |
1108 | "get a copy of the original game, call 1-800-IDGAMES or see the readme file.\n" |
1109 | // " You will not receive technical support for modified games.\n" |
1109 | " You will not receive technical support for modified games.\n" |
1110 | // " press enter to continue\n" |
1110 | " press enter to continue\n" |
1111 | // "===========================================================================\n" |
1111 | "===========================================================================\n" |
1112 | // ); |
1112 | ); |
1113 | getchar (); |
1113 | // getchar (); |
Line 1114... | Line 1114... | ||
1114 | } |
1114 | } |
1115 | 1115 | ||
1116 | 1116 | ||
1117 | // Check and print which version is executed. |
1117 | // Check and print which version is executed. |
1118 | switch ( gamemode ) |
1118 | switch ( gamemode ) |
1119 | { |
1119 | { |
1120 | case shareware: |
1120 | case shareware: |
1121 | case indetermined: |
1121 | case indetermined: |
1122 | // __libclog_printf ( |
1122 | printf ( |
1123 | // "===========================================================================\n" |
1123 | "===========================================================================\n" |
1124 | // " Shareware!\n" |
1124 | " Shareware!\n" |
1125 | // "===========================================================================\n" |
1125 | "===========================================================================\n" |
1126 | // ); |
1126 | ); |
1127 | break; |
1127 | break; |
1128 | case registered: |
1128 | case registered: |
1129 | case retail: |
1129 | case retail: |
1130 | case commercial: |
1130 | case commercial: |
1131 | // __libclog_printf ( |
1131 | printf ( |
1132 | // "===========================================================================\n" |
1132 | "===========================================================================\n" |
1133 | // " Commercial product - do not distribute!\n" |
1133 | " Commercial product - do not distribute!\n" |
1134 | // " Please report software piracy to the SPA: 1-800-388-PIR8\n" |
1134 | " Please report software piracy to the SPA: 1-800-388-PIR8\n" |
Line 1135... | Line 1135... | ||
1135 | // "===========================================================================\n" |
1135 | "===========================================================================\n" |
1136 | // ); |
1136 | ); |
1137 | break; |
1137 | break; |
1138 | 1138 | ||
Line 1139... | Line 1139... | ||
1139 | default: |
1139 | default: |
1140 | // Ouch. |
1140 | // Ouch. |
Line 1141... | Line 1141... | ||
1141 | break; |
1141 | break; |
1142 | } |
1142 | } |
Line 1143... | Line 1143... | ||
1143 | 1143 | ||
1144 | // __libclog_printf ("M_Init: Init miscellaneous info.\n"); |
1144 | printf ("M_Init: Init miscellaneous info.\n"); |
Line 1145... | Line 1145... | ||
1145 | M_Init (); |
1145 | M_Init (); |
1146 | 1146 | ||
Line 1147... | Line 1147... | ||
1147 | // __libclog_printf ("R_Init: Init DOOM refresh daemon - "); |
1147 | printf ("R_Init: Init DOOM refresh daemon - "); |
1148 | R_Init (); |
1148 | R_Init (); |
Line 1149... | Line 1149... | ||
1149 | 1149 | ||
1150 | // __libclog_printf ("\nP_Init: Init Playloop state.\n"); |
1150 | printf ("\nP_Init: Init Playloop state.\n"); |
Line 1151... | Line 1151... | ||
1151 | P_Init (); |
1151 | P_Init (); |
1152 | 1152 | ||
Line 1153... | Line 1153... | ||
1153 | // __libclog_printf ("I_Init: Setting up machine state.\n"); |
1153 | printf ("I_Init: Setting up machine state.\n"); |
Line 1154... | Line 1154... | ||
1154 | I_Init (); |
1154 | I_Init (); |
1155 | 1155 | ||
Line 1156... | Line 1156... | ||
1156 | // __libclog_printf ("D_CheckNetGame: Checking network game status.\n"); |
1156 | printf ("D_CheckNetGame: Checking network game status.\n"); |
1157 | D_CheckNetGame (); |
1157 | D_CheckNetGame (); |
1158 | 1158 |