@@ -43,11 +43,6 @@ vu32* volatile sharedAddr = (vu32*)0x027FFB08;
43
43
static aFile romFile ;
44
44
static aFile savFile ;
45
45
46
- static bool delayRan = false;
47
-
48
- static bool timeoutRun = true;
49
- static int timeoutTimer = 0 ;
50
-
51
46
static int softResetTimer = 0 ;
52
47
53
48
bool ndmaUsed = false;
@@ -172,8 +167,6 @@ void cardRead_arm9() {
172
167
dbg_hexa (marker );
173
168
#endif
174
169
175
- timeoutRun = false; // If card read received, do not show error screen
176
-
177
170
cardReadLED (true); // When a file is loading, turn on LED for card read indicator
178
171
fileRead (dst ,romFile ,src ,len );
179
172
cardReadLED (false); // After loading is done, turn off LED for card read indicator
@@ -188,12 +181,6 @@ void cardRead_arm9() {
188
181
#endif
189
182
}
190
183
191
- void cardRead_delay () {
192
- for (int i = 0 ; i < 30 * 60 ; i ++ ) {
193
- i2cWriteRegister (0x4A , 0x63 , 0x00 ); // Revert power LED to normal (used for delay)
194
- }
195
- }
196
-
197
184
void runCardEngineCheck (void ) {
198
185
//dbg_printf("runCardEngineCheck\n");
199
186
#ifdef DEBUG
@@ -211,21 +198,7 @@ void runCardEngineCheck (void) {
211
198
softResetTimer ++ ;
212
199
}
213
200
214
- if (timeoutRun ) {
215
- u8 setting = i2cReadRegister (0x4A , 0x73 );
216
- if (setting == 0x01 ) {
217
- timeoutTimer += 1 ;
218
- if (timeoutTimer == 60 * 2 ) {
219
- memcpy ((u32 * )0x02000300 ,sr_data_error ,0x020 );
220
- i2cWriteRegister (0x4a ,0x70 ,0x01 );
221
- i2cWriteRegister (0x4a ,0x11 ,0x01 ); // If on loading/white screen for a while, the game is incompatible, so show an error screen
222
- }
223
- } else {
224
- timeoutRun = false;
225
- }
226
- }
227
-
228
- if (tryLockMutex ()) {
201
+ if (tryLockMutex ()) {
229
202
initLogging ();
230
203
231
204
//nocashMessage("runCardEngineCheck mutex ok");
@@ -240,11 +213,6 @@ void runCardEngineCheck (void) {
240
213
{
241
214
cardRead_arm9 ();
242
215
* (vu32 * )(0x027FFB14 ) = 0 ;
243
-
244
- if (!delayRan ) {
245
- cardRead_delay ();
246
- delayRan = true;
247
- }
248
216
}
249
217
unlockMutex ();
250
218
}
@@ -419,8 +387,6 @@ bool cardRead (u32 dma, u32 src, void *dst, u32 len) {
419
387
dbg_hexa (len );
420
388
#endif
421
389
422
- timeoutRun = false; // Do not show error screen
423
-
424
390
cardReadLED (true); // When a file is loading, turn on LED for card read indicator
425
391
//ndmaUsed = false;
426
392
fileRead (dst ,romFile ,src ,len );
0 commit comments