Compare commits

...

1 Commits

Author SHA1 Message Date
coah
4700e05974 match(iplMemoryCardManager): update_file_array
Load mLastCmd through a volatile so MWCC keeps the this+0x10000
base in r3 and the command value in r4 for the range check.
2026-10-01 17:33:21 -05:00

View File

@@ -281,7 +281,7 @@ void MemoryCardManager::update_file_array(u8 slot) {
memorycard::CardState* states = memorycard::getCardSlotState();
states[slot].changed = 0;
sort_file_array(slot);
long command = mLastCmd;
long command = *(volatile long*)&mLastCmd;
if ((u32)(command - 1) <= 3) {
if (mLastResult == -0x15) {
mLastResult = memorycard::getCardLastCMDFCmdResult();