Subversion Repositories SvarDOS

Rev

Rev 312 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 312 Rev 313
Line 560... Line 560...
560
      video_putstring(7, -1, COLOR_BODY[mono], buff, -1);
560
      video_putstring(7, -1, COLOR_BODY[mono], buff, -1);
561
      choice = menuselect(10, -1, 4, list, -1);
561
      choice = menuselect(10, -1, 4, list, -1);
562
      if (choice < 0) return(MENUPREV);
562
      if (choice < 0) return(MENUPREV);
563
      if (choice == 1) return(MENUQUIT);
563
      if (choice == 1) return(MENUQUIT);
564
      snprintf(buff, sizeof(buff), "SYS %c: %c: > NUL", sourcedrv, cselecteddrive);
564
      snprintf(buff, sizeof(buff), "SYS %c: %c: > NUL", sourcedrv, cselecteddrive);
565
      puts(buff);
-
 
566
      system(buff);
565
      system(buff);
567
      sprintf(buff, "FDISK /MBR %d", driveid);
566
      sprintf(buff, "FDISK /MBR %d", driveid);
568
      puts(buff);
-
 
569
      system(buff);
567
      system(buff);
570
      snprintf(buff, sizeof(buff), "%c:\\TEMP", cselecteddrive);
568
      snprintf(buff, sizeof(buff), "%c:\\TEMP", cselecteddrive);
571
      puts(buff);
-
 
572
      mkdir(buff);
569
      mkdir(buff);
573
      return(cselecteddrive);
570
      return(cselecteddrive);
574
    }
571
    }
575
  }
572
  }
576
}
573
}