| 582 | } |
| 583 | |
| 584 | void FileMcd_SetType() |
| 585 | { |
| 586 | // detect inserted memory card types |
| 587 | for (uint slot = 0; slot < 8; ++slot) |
| 588 | { |
| 589 | if (EmuConfig.Mcd[slot].Filename.empty()) |
| 590 | { |
| 591 | EmuConfig.Mcd[slot].Type = MemoryCardType::Empty; |
| 592 | } |
| 593 | else if (EmuConfig.Mcd[slot].Enabled) |
| 594 | { |
| 595 | MemoryCardType type = MemoryCardType::File; // default to file if we can't find anything at the path so it gets auto-generated |
| 596 | |
| 597 | const std::string path(EmuConfig.FullpathToMcd(slot)); |
| 598 | if (FileSystem::DirectoryExists(path.c_str())) |
| 599 | type = MemoryCardType::Folder; |
| 600 | |
| 601 | EmuConfig.Mcd[slot].Type = type; |
| 602 | } |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | void FileMcd_EmuOpen() |
| 607 | { |
no test coverage detected