home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exc.arj / TEMP / 09-06.C < prev    next >
Text File  |  1995-01-20  |  408b  |  24 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. void main(void)
  7. {
  8.    int status;
  9.  
  10.    fg_initpm();
  11.    fg_setmode(19);
  12.  
  13.    status = fg_showflic("GLASS.FLI",1,0);
  14.    if (status == 0) fg_waitkey();
  15.  
  16.    fg_setmode(3);
  17.    fg_reset();
  18.  
  19.    if (status == 1)
  20.       printf("GLASS.FLI not found.\n");
  21.    else if (status == 2)
  22.       printf("GLASS.FLI is not an FLI or FLC file.\n");
  23. }
  24.