Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Nov 29, 2024
1 parent 1ab0afe commit 4d0ed57
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,16 +249,17 @@ int loadmodulemc() {
int mcformatted= MC_UNFORMATTED, mctype, mcfreeSpace, ret;
mcGetInfo(MCPORT, 0, &mctype, &mcfreeSpace, &mcformatted);
mcSync(0, NULL, &ret);

scr_setfontcolor(0xFFFFFF);

scr_printf("\tmc%d: ", MCPORT );
if (mctype != sceMcTypePS2 ) scr_setfontcolor(0x0000CC);
scr_printf("CardType:%d ", mctype );
scr_setfontcolor(0xFFFFFF);
scr_printf("FreeSpace:%d ", mcfreeSpace );
if (mcformatted != MC_FORMATTED ) scr_setfontcolor(0x0000CC);
scr_printf("Formatted:%d\n", mcformatted);
scr_printf("Formatted:%d", mcformatted);
scr_setfontcolor(0xFFFFFF);
scr_printf("McSync:%d\n", ret);
return 0;
}

Expand Down Expand Up @@ -301,7 +302,7 @@ void get_Kc(const void *buffer, void *Kc)

}
void hexdump (const char* name, unsigned char* buf, int size) {
scr_printf("\t%s:", name);
scr_printf("\t%-5s:", name);
for (int i = 0; i < size; i++)
{
scr_printf("%02X ", buf[i]);
Expand Down

0 comments on commit 4d0ed57

Please sign in to comment.