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

Function FileMcd_Read

pcsx2/SIO/Memcard/MemoryCardFile.cpp:744–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744s32 FileMcd_Read(uint port, uint slot, u8* dest, u32 adr, int size)
745{
746 const uint combinedSlot = FileMcd_ConvertToSlot(port, slot);
747 switch (EmuConfig.Mcd[combinedSlot].Type)
748 {
749 case MemoryCardType::File:
750 return Mcd::impl.Read(combinedSlot, dest, adr, size);
751 case MemoryCardType::Folder:
752 return Mcd::implFolder.Read(combinedSlot, dest, adr, size);
753 default:
754 return 0;
755 }
756}
757
758s32 FileMcd_Save(uint port, uint slot, const u8* src, u32 adr, int size)
759{

Callers 1

ReadMethod · 0.85

Calls 2

FileMcd_ConvertToSlotFunction · 0.85
ReadMethod · 0.45

Tested by

no test coverage detected