match(MemoryCardManager 19/26, tiInputForm 217/221) (ult22) (worker 3363cfb8) (#1068)

This commit was merged in pull request #1068.
This commit is contained in:
coah
2026-10-03 01:30:03 -05:00
committed by GitHub
parent e0d3ef0345
commit a4d145c010
3 changed files with 449 additions and 3 deletions

View File

@@ -281,7 +281,11 @@ void MemoryCardManager::update_file_array(u8 slot) {
memorycard::CardState* states = memorycard::getCardSlotState();
states[slot].changed = 0;
sort_file_array(slot);
long command = mLastCmd;
enum CardCommand {
NoCommand, Format, Copy, Move, Delete,
CopyComplete, MoveComplete, DeleteComplete, FormatComplete
};
CardCommand command = static_cast<CardCommand>(mLastCmd);
if ((u32)(command - 1) <= 3) {
if (mLastResult == -0x15) {
mLastResult = memorycard::getCardLastCMDFCmdResult();