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

Function FileMcd_EraseBlock

pcsx2/SIO/Memcard/MemoryCardFile.cpp:772–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772s32 FileMcd_EraseBlock(uint port, uint slot, u32 adr)
773{
774 const uint combinedSlot = FileMcd_ConvertToSlot(port, slot);
775 switch (EmuConfig.Mcd[combinedSlot].Type)
776 {
777 case MemoryCardType::File:
778 return Mcd::impl.EraseBlock(combinedSlot, adr);
779 case MemoryCardType::Folder:
780 return Mcd::implFolder.EraseBlock(combinedSlot, adr);
781 default:
782 return 0;
783 }
784}
785
786u64 FileMcd_GetCRC(uint port, uint slot)
787{

Callers 1

EraseBlockMethod · 0.85

Calls 2

FileMcd_ConvertToSlotFunction · 0.85
EraseBlockMethod · 0.45

Tested by

no test coverage detected