components/prboom/d_main.c
/*
 * FindIWADFIle
 *
 * Search for one of the standard IWADs
 * CPhipps  - static, proper prototype
 *    - 12/1999 - rewritten to use I_FindFile
 */
FindIWADFIle
Search for one of the standard IWADs
CPhipps  - static, proper prototype
- 12/1999 - rewritten to use I_FindFile
FindIWADFIle Search for one of the standard IWADs CPhipps - static proper prototype - 12 / 1999 - rewritten to use I_FindFile
static char *FindIWADFile(void)
{
  char  * iwad  = NULL;
  char *hardcodedIWad="DOOM1.WAD";
  iwad=malloc(strlen(hardcodedIWad)+1);
  strcpy(iwad, hardcodedIWad);
#if 0
  int   i;
  i = M_CheckParm("-iwad");
  if (i && (++i < myargc)) {
    iwad = I_FindFile(myargv[i], ".wad");
  } else {
    for (i=0; !iwad && i<nstandard_iwads; i++)
      iwad = I_FindFile(standard_iwads[i], ".wad");
  }
#endif
  return iwad;
}
static char * FindIWADFile ( void ) { char * iwad = NULL ; char * hardcodedIWad = " " ; iwad = malloc ( strlen ( hardcodedIWad ) + 1 ) ; strcpy ( iwad , hardcodedIWad ) ; #if 0 int i ; i = M_CheckParm ( " " ) ; if ( i && ( ++ i < myargc ) ) { iwad = I_FindFile ( myargv [ i ] , " " ) ; } else { for ( i = 0 ; ! iwad && i < nstandard_iwads ; i ++ ) iwad = I_FindFile ( standard_iwads [ i ] , " " ) ; } #endif return iwad ; }
FindIWADFIle
 Search for one of the standard IWADs
 CPhipps  - static, proper prototype
    - 12/1999 - rewritten to use I_FindFile
FindIWADFIle Search for one of the standard IWADs CPhipps - static proper prototype - 12 / 1999 - rewritten to use I_FindFile