Subversion Repositories SvarDOS

Rev

Rev 67 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 67 Rev 69
Line 625... Line 625...
625
  r.h.ah = 0; /* re-set video mode (to whatever is set in AL) */
625
  r.h.ah = 0; /* re-set video mode (to whatever is set in AL) */
626
  int86(0x10, &r, &r);
626
  int86(0x10, &r, &r);
627
  }
627
  }
628
}
628
}
629
 
629
 
630
 
-
 
631
/* checks CD drive drv for the presence of the Svarog386 install CD
630
/* checks CD drive drv for the presence of the Svarog386 install CD
632
 * returns 0 if found, non-zero otherwise */
631
 * returns 0 if found, non-zero otherwise */
633
/*static int checkcd(char drv) {
632
static int checkcd(char drv) {
634
  FILE *fd;
633
  FILE *fd;
635
  char fname[32];
634
  char fname[32];
636
  snprintf(fname, sizeof(fname), "%c:\\CORE\\MEM.ZIP", drv);
635
  snprintf(fname, sizeof(fname), "%c:\\CORE\\MEM.ZIP", drv);
637
  fd = fopen(fname, "rb");
636
  fd = fopen(fname, "rb");
638
  if (fd == NULL) return(-1);
637
  if (fd == NULL) return(-1);
639
  fclose(fd);
638
  fclose(fd);
640
  return(0);
639
  return(0);
641
}*/
640
}
642
 
641
 
643
 
642
 
644
int main(void) {
643
int main(void) {
645
  struct slocales locales;
644
  struct slocales locales;
646
  int targetdrv;
645
  int targetdrv;
Line 651... Line 650...
651
  if (cdromdrv < 0) {
650
  if (cdromdrv < 0) {
652
    printf("ERROR: CD-ROM DRIVE NOT FOUND\r\n");
651
    printf("ERROR: CD-ROM DRIVE NOT FOUND\r\n");
653
    return(1);
652
    return(1);
654
  }
653
  }
655
  cdromdrv += 'A'; /* convert the cdrom 'id' (A=0) to an actual drive letter */
654
  cdromdrv += 'A'; /* convert the cdrom 'id' (A=0) to an actual drive letter */
656
  /*if (checkcd(cdromdrv) != 0) {
655
  if (checkcd(cdromdrv) != 0) {
657
    printf("ERROR: SVAROG386 INSTALLATION CD NOT FOUND IN THE DRIVE.\r\n");
656
    printf("ERROR: SVAROG386 INSTALLATION CD NOT FOUND IN THE DRIVE.\r\n");
658
    return(1);
657
    return(1);
659
  }*/
658
  }
660
 
659
 
661
  /* init screen and detect mono status */
660
  /* init screen and detect mono status */
662
  mono = video_init();
661
  mono = video_init();
663
 
662
 
664
  for (;;) { /* fake loop, it's here just to break out easily */
663
  for (;;) { /* fake loop, it's here just to break out easily */