home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / ABUSESRC.ZIP / AbuseSrc / macabuse / src / setup.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-20  |  1.6 KB  |  91 lines

  1. #ifdef __WATCOMC__
  2.  
  3. #include "specs.hpp"
  4. #include "id.hpp"
  5. #include "jwindow.hpp"
  6. #include "sound.hpp"
  7. #include "guistat.hpp"
  8. #include "timing.hpp"
  9. #include "video.hpp"
  10. #include "input.hpp"
  11. #include "scroller.hpp"
  12. #include "lisp.hpp"
  13. #include "lisp_gc.hpp"
  14. #include "dprint.hpp"
  15. #include "cache.hpp"
  16.  
  17.  
  18. extern int sosEZGetConfig(char *szName);
  19.  
  20. extern window_manager *eh;
  21. extern palette *lastl;
  22.  
  23. extern unsigned char fnt6x13[192*104];
  24.  
  25. /*int card_ids[] =
  26. {  _ADLIB_GOLD_8_MONO,
  27.    _ADLIB_GOLD_8_MONO,
  28.    _SOUNDSCAPE_8_MONO,
  29.    _ESS_AUDIODRIVE_8_MONO,
  30.    _GUS_8_MONO,
  31.    _GUS_MAX_8_MONO,
  32.    _MICROSOFT_8_MONO,
  33.    _MV_PAS_8_MONO,
  34.    _MV_PAS_8_MONO,
  35.    _RAP10_8_MONO,
  36.    _SOUND_BLASTER_8_MONO,          // SB
  37.    _SOUND_BLASTER_8_MONO,          // SB pro
  38.    _SB16_8_MONO,
  39.    _SB16_8_MONO,
  40.    _SOUND_MASTER_II_8_MONO,
  41.    _SOUND_BLASTER_8_MONO,
  42.    _SOUND_BLASTER_8_MONO };
  43. */
  44.  
  45.  
  46.  
  47. int get_option(char *name);
  48.  
  49. JCFont *cfg_font;
  50.  
  51. static  int highest_help=0;
  52.  
  53.  
  54. extern int jmalloc_max_size;
  55.  
  56. FILE *open_FILE(char *filename, char *mode);
  57. void setup(int argc, char **argv)
  58. {
  59.  
  60.   char tmp_name[200];
  61.   if (get_filename_prefix())
  62.     sprintf(tmp_name,"%s%s",get_filename_prefix(),"sndcard.cfg");
  63.   else strcpy(tmp_name,"sndcard.cfg");
  64.  
  65.   FILE *fp=fopen(tmp_name,"rb");
  66.   
  67.   if (!fp)
  68.   {
  69.     fp=fopen("setup.exe","rb");
  70.     if (!fp)
  71.     {
  72.       dprintf("Sound not configured and no setup program, cannot play sound\n");
  73.       return ;
  74.     }
  75.     fclose(fp);
  76.     system("setup.exe");
  77.   } else fclose(fp);
  78.     
  79.   sosEZGetConfig(tmp_name);
  80.  
  81. }
  82.   
  83.   
  84. #else
  85.  
  86. void setup(int argc, char **argv)
  87. { ; } 
  88.  
  89.  
  90. #endif
  91.