@@ -1241,7 +1241,7 @@ static bool nandWrite(void) {
12411241 cardReadLED(false);
12421242}*/
12431243
1244- static bool readOngoing = false;
1244+ // static bool readOngoing = false;
12451245//static bool sdReadOngoing = false;
12461246static bool ongoingIsDma = false;
12471247//static int currentCmd=0, currentNdmaSlot=0;
@@ -1439,11 +1439,11 @@ void runCardEngineCheck(void) {
14391439
14401440 const bool isDma = (/* sharedAddr[3] == (vu32)0x020FF80A || */ sharedAddr [3 ] == (vu32 )0x025FFB0A );
14411441
1442- readOngoing = true;
1442+ // readOngoing = true;
14431443 cardReadLED (true, isDma ); // When a file is loading, turn on LED for card read indicator
14441444 fileRead ((char * )dst , useApFixOverlays ? apFixOverlaysFile : romFile , src , len );
14451445 cardReadLED (false, isDma ); // After loading is done, turn off LED for card read indicator
1446- readOngoing = false;
1446+ // readOngoing = false;
14471447 sharedAddr [3 ] = 0 ;
14481448 if (isDma ) {
14491449 IPC_SendSync (0x3 );
@@ -1909,7 +1909,7 @@ bool eepromRead(u32 src, void *dst, u32 len) {
19091909 }
19101910
19111911 if (tryLockMutex (& saveMutex )) {
1912- while (readOngoing ) { swiDelay (100 ); }
1912+ // while (readOngoing) { swiDelay(100); }
19131913 #ifdef TWLSDK
19141914 //bool doBak = ((valueBits & gameOnFlashcard) && !(valueBits & saveOnFlashcard));
19151915 //if (doBak) bakSdData();
@@ -1958,7 +1958,7 @@ bool eepromPageWrite(u32 dst, const void *src, u32 len) {
19581958 }
19591959
19601960 if (tryLockMutex (& saveMutex )) {
1961- while (readOngoing ) { swiDelay (100 ); }
1961+ // while (readOngoing) { swiDelay(100); }
19621962 #ifdef TWLSDK
19631963 //bool doBak = ((valueBits & gameOnFlashcard) && !(valueBits & saveOnFlashcard));
19641964 //if (doBak) bakSdData();
@@ -2008,7 +2008,7 @@ bool eepromPageProg(u32 dst, const void *src, u32 len) {
20082008 }
20092009
20102010 if (tryLockMutex (& saveMutex )) {
2011- while (readOngoing ) { swiDelay (100 ); }
2011+ // while (readOngoing) { swiDelay(100); }
20122012 #ifdef TWLSDK
20132013 //bool doBak = ((valueBits & gameOnFlashcard) && !(valueBits & saveOnFlashcard));
20142014 //if (doBak) bakSdData();
@@ -2167,7 +2167,7 @@ bool cardRead(u32 dma, u32 src, void *dst, u32 len) {
21672167 if (valueBits & ROMinRAM ) {
21682168 cardReadRAM (dst , src , len );
21692169 } else {
2170- while (readOngoing ) { swiDelay (100 ); }
2170+ // while (readOngoing) { swiDelay(100); }
21712171 //driveInitialize();
21722172 cardReadLED (true, false); // When a file is loading, turn on LED for card read indicator
21732173 //ndmaUsed = false;
0 commit comments