MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / FileMcd_ReIndex

Function FileMcd_ReIndex

pcsx2/SIO/Memcard/MemoryCardFile.cpp:816–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814}
815
816int FileMcd_ReIndex(uint port, uint slot, const std::string& filter)
817{
818 const int combinedSlot = FileMcd_ConvertToSlot(port, slot);
819
820 switch (EmuConfig.Mcd[combinedSlot].Type)
821 {
822 //case MemoryCardType::File:
823 // return Mcd::impl.ReIndex( combinedSlot, filter );
824 // break;
825 case MemoryCardType::Folder:
826 if (!Mcd::implFolder.ReIndex(combinedSlot, true, filter))
827 return -1;
828 break;
829 default:
830 return -1;
831 break;
832 }
833
834 return combinedSlot;
835}
836
837// --------------------------------------------------------------------------------------
838// Library API Implementations

Callers 1

ReIndexMethod · 0.85

Calls 2

FileMcd_ConvertToSlotFunction · 0.85
ReIndexMethod · 0.45

Tested by

no test coverage detected