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

Function FileMcd_Save

pcsx2/SIO/Memcard/MemoryCardFile.cpp:758–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758s32 FileMcd_Save(uint port, uint slot, const u8* src, u32 adr, int size)
759{
760 const uint combinedSlot = FileMcd_ConvertToSlot(port, slot);
761 switch (EmuConfig.Mcd[combinedSlot].Type)
762 {
763 case MemoryCardType::File:
764 return Mcd::impl.Save(combinedSlot, src, adr, size);
765 case MemoryCardType::Folder:
766 return Mcd::implFolder.Save(combinedSlot, src, adr, size);
767 default:
768 return 0;
769 }
770}
771
772s32 FileMcd_EraseBlock(uint port, uint slot, u32 adr)
773{

Callers 1

WriteMethod · 0.85

Calls 2

FileMcd_ConvertToSlotFunction · 0.85
SaveMethod · 0.45

Tested by

no test coverage detected