| 320 | #endif |
| 321 | |
| 322 | static int adv_menu_boot_selected(disk_t *disk, partition_t *partition, const int verbose,const int dump_ind, const unsigned int expert, char**current_cmd) |
| 323 | { |
| 324 | if(is_part_fat32(partition)) |
| 325 | { |
| 326 | fat32_boot_sector(disk, partition, verbose, dump_ind, expert,current_cmd); |
| 327 | return 1; |
| 328 | } |
| 329 | else if(is_part_fat12(partition) || is_part_fat16(partition)) |
| 330 | { |
| 331 | fat1x_boot_sector(disk, partition, verbose, dump_ind,expert,current_cmd); |
| 332 | return 1; |
| 333 | } |
| 334 | else if(is_part_ntfs(partition)) |
| 335 | { |
| 336 | if(partition->upart_type==UP_EXFAT) |
| 337 | exFAT_boot_sector(disk, partition, current_cmd); |
| 338 | else |
| 339 | ntfs_boot_sector(disk, partition, verbose, expert, current_cmd); |
| 340 | return 1; |
| 341 | } |
| 342 | else if(partition->upart_type==UP_FAT32) |
| 343 | { |
| 344 | fat32_boot_sector(disk, partition, verbose, dump_ind, expert,current_cmd); |
| 345 | return 1; |
| 346 | } |
| 347 | else if(partition->upart_type==UP_FAT12 || partition->upart_type==UP_FAT16) |
| 348 | { |
| 349 | fat1x_boot_sector(disk, partition, verbose, dump_ind,expert,current_cmd); |
| 350 | return 1; |
| 351 | } |
| 352 | else if(partition->upart_type==UP_NTFS) |
| 353 | { |
| 354 | ntfs_boot_sector(disk, partition, verbose, expert, current_cmd); |
| 355 | return 1; |
| 356 | } |
| 357 | else if(partition->upart_type==UP_EXFAT) |
| 358 | { |
| 359 | exFAT_boot_sector(disk, partition, current_cmd); |
| 360 | return 1; |
| 361 | } |
| 362 | return 0; |
| 363 | } |
| 364 | |
| 365 | static void adv_menu_image_selected(disk_t *disk, const partition_t *partition, char **current_cmd) |
| 366 | { |
no test coverage detected