From 40409bedab973ece153a4238e537ef4db04ece3d Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Tue, 11 Oct 2022 15:26:58 +0300 Subject: [PATCH] Match CMemoryCardDriver::StartFileWriteTransactional --- src/MetroidPrime/CMemoryCardDriver.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/MetroidPrime/CMemoryCardDriver.cpp b/src/MetroidPrime/CMemoryCardDriver.cpp index fb69c11d..49daca7c 100644 --- a/src/MetroidPrime/CMemoryCardDriver.cpp +++ b/src/MetroidPrime/CMemoryCardDriver.cpp @@ -613,7 +613,13 @@ void CMemoryCardDriver::StartFileCreateTransactional() { UpdateFileCreateTransactional(result); } -void CMemoryCardDriver::StartFileWriteTransactional() {} +void CMemoryCardDriver::StartFileWriteTransactional() { + x14_error = kE_OK; + x10_state = kS_FileWriteTransactional; + ECardResult result = x198_fileInfo->WriteFile(); + if (result != kCR_READY) + UpdateFileWriteTransactional(result); +} void CMemoryCardDriver::StartFileDeleteAltTransactional() {}