MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / CARDClose

Function CARDClose

src/dolphin/src/card/CARDOpen.c:194–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194s32 CARDClose(CARDFileInfo *fileInfo)
195{
196 CARDControl *card;
197 s32 result;
198
199 result = __CARDGetControlBlock(fileInfo->chan, &card);
200 if (result < 0)
201 {
202 return result;
203 }
204
205 fileInfo->chan = -1;
206 return __CARDPutControlBlock(card, CARD_RESULT_READY);
207}
208
209BOOL __CARDIsOpened(CARDControl *card, s32 fileNo) { return FALSE; }

Callers 3

iSGTgtHaveRoomFunction · 0.85
iSGTgtHaveRoomStartupFunction · 0.85
iSG_mc_fcloseFunction · 0.85

Calls 2

__CARDGetControlBlockFunction · 0.85
__CARDPutControlBlockFunction · 0.85

Tested by

no test coverage detected