@@ -77,6 +77,7 @@ int main(int argc, char** argv) {
77
77
sio_puts ("> mechaemu update binder\n> BuilDate: " __DATE__ " " __TIME__ "\n" );
78
78
while (!SifIopRebootBuffer (ioprp , size_ioprp )) {}; // we need homebrew FILEIO
79
79
sio_puts ("> Waiting for SifIopSync()" );
80
+ memset (ROMVER , 0 , sizeof (ROMVER ));
80
81
while (!SifIopSync ()) {}; // wait for IOP to reboot
81
82
sio_puts ("> startup services" );
82
83
SifInitIopHeap (); // Initialize SIF services for loading modules and files.
@@ -87,7 +88,6 @@ int main(int argc, char** argv) {
87
88
scr_setCursor (0 );
88
89
sleep (2 );
89
90
sio_puts ("> pull romver" );
90
- memset (ROMVER , 0 , sizeof (ROMVER ));
91
91
GetRomName (ROMVER );
92
92
//scr_printf("\tConsole model: %s\n", ModelNameGet());
93
93
//scr_printf("\tConsole ID: 0x%x\n", getConsoleID());
@@ -103,7 +103,11 @@ LOADMODULE(ppctty_irx, NULL);
103
103
LOADMODULE (ps2dev9_irx , NULL );
104
104
LOADMODULE (udptty_standalone_irx , NULL );
105
105
#endif
106
- scr_printf (".\n\t ============ OG Card Tester ============\n" );
106
+ const char * title = " OG Card Tester " ;
107
+ scr_printf (".\n" );
108
+ for (int x = 0 ; x < (80 - strlen (title ))/2 ;x ++ ) scr_printf ("=" );
109
+ scr_printf ("%s" , title );
110
+ for (int x = 0 ; x < (80 - strlen (title ))/2 ;x ++ ) scr_printf ("=" );
107
111
scr_printf ("\tCoded by El_isra\n" );
108
112
//scr_printf("\thttps://github.com/israpps/system2x6-dongle-dumper\n");
109
113
scr_printf ("\tConsole ROMVER: %s\n" , ROMVER );
@@ -200,37 +204,38 @@ int loadmodulemc() {
200
204
mcInit (MC_TYPE_XMC );
201
205
for (int i = 0 ; i < 2 ; i ++ )
202
206
{
207
+ scr_setfontcolor (0xFFFFFF );
203
208
scr_printf ("\n\n\tmc%d: " , i );
204
209
int a = 1 ;
205
210
int mcformatted = MC_UNFORMATTED , mctype = sceMcTypeNoCard , mcfreeSpace = 0 , ret ;
206
211
mcGetInfo (i , 0 , & mctype , & mcfreeSpace , & mcformatted );
207
212
mcSync (0 , NULL , & ret );
208
- scr_setfontcolor (0xFFFFFF );
209
213
210
214
211
215
if (mctype != sceMcTypePS2 ) {scr_setfontcolor (0x0000CC ); a = 0 ;}
212
216
usleep (rand ()%600000 );
213
- scr_printf ("CardType:%d " , mctype );
217
+ scr_printf ("CardType:%d " , mctype );
214
218
scr_setfontcolor (0xFFFFFF );
215
219
usleep (rand ()%600000 );
216
220
scr_printf ("FreeSpace:%04d " , mcfreeSpace );
217
- if (mcformatted != MC_FORMATTED ) {scr_setfontcolor (0x0000CC ); a = 0 ;}
218
- usleep (rand ()%600000 );
219
- scr_printf ("Formatted:%d\n" , mcformatted );
221
+ if (mcformatted != MC_FORMATTED ) {scr_setfontcolor (0x0000CC ); a = 0 ;}
220
222
usleep (rand ()%600000 );
223
+ scr_printf ("Formatted:%d " , mcformatted );
224
+ scr_printf ("McSync:%d\n" , ret );
221
225
if (a ) {
222
226
scr_setfontcolor (0x00FF00 );
223
227
scr_printf ("\t\tThe card was successfully authenticated with developer magicgate\n" );
224
228
} else {
225
229
scr_setfontcolor (0x0000CC );
226
- scr_printf ("\t\tCannot auth card with dev keys.\n\t\t\tCard is bootleg or maybe arcade/prototype card\n" );
230
+ if (ret == -11 ) scr_printf ("\t\tNo memory card connected?\n" );
231
+ else
232
+ scr_printf ("\t\tCould not auth card with developer magicgate. card might not be OG\n" );
227
233
}
228
234
229
235
}
230
236
231
237
return 0 ;
232
238
nocard :
233
- scr_printf ("\tCannot auth card with dev keys\n\tCard is bootleg...\n\tOr maybe arcade/prototype card\n" );
234
239
scr_setfontcolor (0xFFFFFF );
235
240
return -1 ;
236
241
}
0 commit comments