Subversion Repositories SvarDOS

Rev

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

Rev 1179 Rev 1239
Line 526... Line 526...
526
      list[2] = svarlang_str(0, 2); /* Quit to DOS */
526
      list[2] = svarlang_str(0, 2); /* Quit to DOS */
527
      list[3] = NULL;
527
      list[3] = NULL;
528
      snprintf(buff, sizeof(buff), svarlang_strid(0x0300), cselecteddrive, SVARDOS_DISK_REQ); /* "ERROR: Drive %c: could not be found. Note, that SvarDOS requires at least %d MiB of available disk space */
528
      snprintf(buff, sizeof(buff), svarlang_strid(0x0300), cselecteddrive, SVARDOS_DISK_REQ); /* "ERROR: Drive %c: could not be found. Note, that SvarDOS requires at least %d MiB of available disk space */
529
      switch (menuselect(6 + putstringwrap(4, 1, COLOR_BODY[mono], buff), -1, 5, list, -1)) {
529
      switch (menuselect(6 + putstringwrap(4, 1, COLOR_BODY[mono], buff), -1, 5, list, -1)) {
530
        case 0:
530
        case 0:
531
          sprintf(buff, "FDISK /AUTO %d", driveid);
531
          sprintf(buff, "FDISK /PRI:MAX %d", driveid);
532
          system(buff);
532
          system(buff);
533
          break;
533
          break;
534
        case 1:
534
        case 1:
535
          video_clear(0x0700, 0, 0);
535
          video_clear(0x0700, 0, 0);
536
          video_movecursor(0, 0);
536
          video_movecursor(0, 0);
Line 542... Line 542...
542
        default:
542
        default:
543
          return(-1);
543
          return(-1);
544
      }
544
      }
545
      /* write a temporary MBR which only skips the drive (in case BIOS would
545
      /* write a temporary MBR which only skips the drive (in case BIOS would
546
       * try to boot off the not-yet-ready C: disk) */
546
       * try to boot off the not-yet-ready C: disk) */
547
      sprintf(buff, "FDISK /AMBR %d", driveid);
547
      sprintf(buff, "FDISK /LOADIPL %d", driveid);
548
      system(buff); /* writes BOOT.MBR into actual MBR */
548
      system(buff); /* writes BOOT.MBR into actual MBR */
549
      newscreen(2);
549
      newscreen(2);
550
      putstringnls(10, 10, COLOR_BODY[mono], 3, 1); /* "Your computer will reboot now." */
550
      putstringnls(10, 10, COLOR_BODY[mono], 3, 1); /* "Your computer will reboot now." */
551
      putstringnls(12, 10, COLOR_BODY[mono], 0, 5); /* "Press any key..." */
551
      putstringnls(12, 10, COLOR_BODY[mono], 0, 5); /* "Press any key..." */
552
      input_getkey();
552
      input_getkey();