| 171 | } |
| 172 | |
| 173 | void createTask(void *arg) |
| 174 | { |
| 175 | s32 chan = (s32)arg; |
| 176 | SaveFile *pSaveFile = msaCardData[chan].mSaveFile; |
| 177 | |
| 178 | msaCardData[chan].mCardStatus = CARDCreate(chan, pSaveFile->getFileName(), pSaveFile->getFileSize(), &msaCardData[chan].mFileInfo); |
| 179 | |
| 180 | switch (msaCardData[chan].mCardStatus) |
| 181 | { |
| 182 | case CARD_RESULT_IOERROR: |
| 183 | msaCardData[chan].mProcessFlag |= mcError; |
| 184 | break; |
| 185 | case CARD_RESULT_READY: |
| 186 | CARDGetStatus(chan, msaCardData[chan].mFileInfo.fileNo, &msaCardData[chan].mStat); |
| 187 | msaCardData[chan].mProcessFlag |= mcGetStatus; |
| 188 | break; |
| 189 | } |
| 190 | |
| 191 | msaCardData[chan].mProcessFlag |= mcCreate; |
| 192 | msaCardData[chan].mTaskStatus = mcTaskDone; |
| 193 | } |
| 194 | |
| 195 | bool read(s32 chan, SaveFile::FilePart filePart) |
| 196 | { |
nothing calls this directly
no test coverage detected