| 35 | |
| 36 | #ifdef HAVE_NCURSES |
| 37 | static int interface_check_disk_capacity_ncurses(disk_t *disk_car) |
| 38 | { |
| 39 | static const struct MenuItem menuMain[]= |
| 40 | { |
| 41 | { 'C', "Continue","The HD is really 137 GB only."}, |
| 42 | { 'Q',"Quit","The HD is bigger, it's safer to enable LBA48 support first."}, |
| 43 | { 0,NULL,NULL} |
| 44 | }; |
| 45 | unsigned int menu=1; |
| 46 | int car; |
| 47 | aff_copy(stdscr); |
| 48 | wmove(stdscr,4,0); |
| 49 | wprintw(stdscr,"%s\n",disk_car->description(disk_car)); |
| 50 | wmove(stdscr,6,0); |
| 51 | wprintw(stdscr,"The Hard disk size seems to be 137GB."); |
| 52 | wmove(stdscr,7,0); |
| 53 | wprintw(stdscr,"Support for 48-bit Logical Block Addressing (LBA) is needed to access"); |
| 54 | wmove(stdscr,8,0); |
| 55 | wprintw(stdscr,"hard disks larger than 137 GB."); |
| 56 | wmove(stdscr,9,0); |
| 57 | #if defined(__CYGWIN__) || defined(__MINGW32__) |
| 58 | wprintw(stdscr,"Update Windows to support LBA48 (minimum: W2K SP4 or XP SP1)"); |
| 59 | #endif |
| 60 | car= wmenuSelect_ext(stdscr, 23, INTER_MAIN_Y, INTER_MAIN_X, menuMain, 10, |
| 61 | "CQ", MENU_VERT | MENU_VERT_WARN | MENU_BUTTON, &menu,NULL); |
| 62 | if(car=='c' || car=='C') |
| 63 | return 0; |
| 64 | return 1; |
| 65 | } |
| 66 | #endif |
| 67 | |
| 68 | int interface_check_disk_capacity(disk_t *disk_car) |
no test coverage detected