void CEXIMemoryCard::FlushCallback(u64 userdata, int cyclesLate) { // note that userdata is forbidden to be a pointer, due to the implementation of EventDoState int card_index = (int)userdata; CEXIMemoryCard* pThis = (CEXIMemoryCard*)ExpansionInterface::FindDevice(EXIDEVICE_MEMORYCARD, card_index); if (pThis) pThis->Flush(); }
void CEXIMemoryCard::FlushCallback(u64 userdata, int cyclesLate) { CEXIMemoryCard *ptr = cards[userdata]; ptr->Flush(); }