Subversion Repositories SvarDOS

Rev

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

Rev 56 Rev 57
Line 279... Line 279...
279
      char *list[] = { "Create a partition automatically", "Run the FDISK partitioning tool", "Quit to DOS", NULL};
279
      char *list[] = { "Create a partition automatically", "Run the FDISK partitioning tool", "Quit to DOS", NULL};
280
      list[0] = kittengets(0, 3, list[0]);
280
      list[0] = kittengets(0, 3, list[0]);
281
      list[1] = kittengets(0, 4, list[1]);
281
      list[1] = kittengets(0, 4, list[1]);
282
      list[2] = kittengets(0, 2, list[2]);
282
      list[2] = kittengets(0, 2, list[2]);
283
      snprintf(buff, sizeof(buff), kittengets(3, 0, "ERROR: Drive %c: could not be found. Perhaps your hard disk needs to be partitioned first. Please create at least one partition on your hard disk, so Svarog386 can be installed on it. Note, that Svarog386 requires at least %d MiB of available disk space.\n\nYou can use the FDISK partitioning tool for creating the required partition manually, or you can let the installer partitioning your disk automatically. You can also abort the installation to use any other partition manager of your choice."), cselecteddrive, SVAROG_DISK_REQ);
283
      snprintf(buff, sizeof(buff), kittengets(3, 0, "ERROR: Drive %c: could not be found. Perhaps your hard disk needs to be partitioned first. Please create at least one partition on your hard disk, so Svarog386 can be installed on it. Note, that Svarog386 requires at least %d MiB of available disk space.\n\nYou can use the FDISK partitioning tool for creating the required partition manually, or you can let the installer partitioning your disk automatically. You can also abort the installation to use any other partition manager of your choice."), cselecteddrive, SVAROG_DISK_REQ);
284
      video_putstring(4, 2, COLOR_BODY[mono], buff, -1);
284
      putstringwrap(4, 2, COLOR_BODY[mono], buff);
285
      switch (menuselect(14, -1, 5, list)) {
285
      switch (menuselect(14, -1, 5, list)) {
286
        case 0:
286
        case 0:
287
          system("FDISK /AUTO");
287
          system("FDISK /AUTO");
288
          break;
288
          break;
289
        case 1:
289
        case 1:
Line 575... Line 575...
575
  int targetdrv;
575
  int targetdrv;
576
  int cdromdrv;
576
  int cdromdrv;
577
 
577
 
578
  /* find where the cdrom drive is */
578
  /* find where the cdrom drive is */
579
  cdromdrv = cdrom_findfirst();
579
  cdromdrv = cdrom_findfirst();
580
  cdromdrv = 3;
-
 
581
  if (cdromdrv < 0) {
580
  if (cdromdrv < 0) {
582
    printf("ERROR: CD-ROM DRIVE NOT FOUND\r\n");
581
    printf("ERROR: CD-ROM DRIVE NOT FOUND\r\n");
583
    return(1);
582
    return(1);
584
  }
583
  }
585
  cdromdrv += 'A'; /* convert the cdrom 'id' (A=0) to an actual drive letter */
584
  cdromdrv += 'A'; /* convert the cdrom 'id' (A=0) to an actual drive letter */