@@ -382,6 +382,8 @@ struct cardinfo_t {
382382 int revision ;
383383 int protocol ;
384384 int validcard ;
385+ int card ;
386+ int chan ;
385387 char gid [MAX_GAMEID_LEN ];
386388};
387389
@@ -404,6 +406,8 @@ static void refresh_mmceman_data(struct cardinfo_t* CardInfo) {
404406 if (fileXioDevctl (mmce , MMCE_CMD_GET_GAMEID , NULL , 0 , & CardInfo [i ].gid , MAX_GAMEID_LEN ) == -1 ) {
405407 strncpy (CardInfo [i ].gid , LNG (Unknown ), MAX_GAMEID_LEN );
406408 }
409+ CardInfo [i ].card = fileXioDevctl (mmce , MMCE_CMD_GET_CHANNEL , NULL , 0 , NULL , 0 );
410+ CardInfo [i ].chan = fileXioDevctl (mmce , MMCE_CMD_GET_CARD , NULL , 0 , NULL , 0 );
407411 } else CardInfo [i ].validcard = FALSE;
408412 }
409413}
@@ -483,6 +487,11 @@ static void Show_MMCEManager(void)
483487 PrintPos (03 , hpos [i ], TextRow , COLOR_TEXT );
484488 snprintf (TextRow , 36 , " GameID '%s'" , CardInfo [i ].gid );
485489 PrintPos (04 , hpos [i ], TextRow , COLOR_TEXT );
490+
491+ snprintf (TextRow , 36 , " channel %d" , CardInfo [i ].chan );
492+ PrintPos (05 , hpos [i ], TextRow , COLOR_TEXT );
493+ snprintf (TextRow , 36 , " card %d" , CardInfo [i ].card );
494+ PrintPos (06 , hpos [i ], TextRow , COLOR_TEXT );
486495 } else {
487496 sprintf (TextRow , "%s" , " No device found" );
488497 PrintPos (02 , hpos [i ], TextRow , COLOR_GRAPH3 );
0 commit comments