161 MemcardCBHandler *pHandler,
int nPort,
const char *pszName,
int nMaxEntries,
int nMode);
Receiver of the result of one memory card command.
Definition memcardcbhandler.h:13
void MemcardRead(MemcardCBHandler *pHandler, int nFd, void *pBuffer, int nSize)
Start reading a file.
void MemcardAssignSlots(bool bPort0Multitap, bool bPort1Multitap)
Give the memory card slots to the controller ports.
void MemcardSeek(MemcardCBHandler *pHandler, int nFd, int nOffset, int nMode)
Start moving the position of a file.
void MemcardGetInfo(MemcardCBHandler *pHandler, int nPort, int *pnType, int *pnFree, int *pnFormat)
Start reading the type, the free space, and the format of a card.
const char * MemcardGetSlotName(int nPort)
Report the localisation token of the name of a memory card slot.
void MemcardOpen(MemcardCBHandler *pHandler, int nPort, const char *pszName, int nMode)
Start opening a file.
void MemcardMkdir(MemcardCBHandler *pHandler, int nPort, const char *pszName)
Start creating a directory.
void MemcardClose(MemcardCBHandler *pHandler, int nFd)
Start closing a file.
void MemcardWrite(MemcardCBHandler *pHandler, int nFd, const void *pData, int nSize)
Start writing a file.
void MemcardDelete(MemcardCBHandler *pHandler, int nPort, const char *pszName)
Start deleting a file or an empty directory.
void MemcardPoll()
Advance the memory card command in flight.
void MemcardTerminate()
Stop the memory card library.
constexpr int kMemcardSlotCount
The number of memory card slots, four multitap slots of the first port.
Definition memcard.h:7
void MemcardGetDir(MemcardCBHandler *pHandler, int nPort, const char *pszName, int nMaxEntries, int nMode)
Start listing the entries that match a name.
void MemcardInit()
Start the memory card library and give slot 0 to port 0 and slot 1 to port 1.
void MemcardFormat(MemcardCBHandler *pHandler, int nPort)
Start formatting a card.
void MemcardUnformat(MemcardCBHandler *pHandler, int nPort)
Start unformatting a card.