| 347 | } |
| 348 | |
| 349 | static int check_part_xbox(disk_t *disk_car,const int verbose,partition_t *partition, const int saveheader) |
| 350 | { |
| 351 | int ret=0; |
| 352 | switch(partition->part_type_xbox) |
| 353 | { |
| 354 | case PXBOX_FATX: |
| 355 | ret=check_FATX(disk_car, partition); |
| 356 | if(ret!=0) |
| 357 | { screen_buffer_add("Invalid FATX signature\n"); } |
| 358 | break; |
| 359 | default: |
| 360 | if(verbose>0) |
| 361 | { |
| 362 | log_info("check_part_xbox %u type %02X: no test\n",partition->order,partition->part_type_xbox); |
| 363 | } |
| 364 | break; |
| 365 | } |
| 366 | if(ret!=0) |
| 367 | { |
| 368 | log_error("check_part_xbox failed for partition type %02X\n", partition->part_type_xbox); |
| 369 | aff_part_buffer(AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition); |
| 370 | if(saveheader>0) |
| 371 | { |
| 372 | save_header(disk_car,partition,verbose); |
| 373 | } |
| 374 | } |
| 375 | return ret; |
| 376 | } |
| 377 | |
| 378 | static const char *get_partition_typename_xbox_aux(const unsigned int part_type_xbox) |
| 379 | { |
no test coverage detected