Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Remove spurious whitespace
Silence warning
Make numberOfSectors indeterminate for CSD Version 4.0
  • Loading branch information
Extrems committed Jan 6, 2025
1 parent 9034d1b commit fdb6900
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 75 deletions.
2 changes: 1 addition & 1 deletion libogc/gcsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static bool __gcsd_startup(DISC_INTERFACE *disc)
disc->numberOfSectors = (C_SIZE2(chan) + 1LL) << 10;
break;
default:
disc->numberOfSectors = 0;
disc->numberOfSectors = ~0;
break;
}

Expand Down
2 changes: 2 additions & 0 deletions libogc/sdgecko_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@ static s32 __card_sendopcond(s32 drv_no)
return CARDIO_ERROR_READY;
}

#if defined(HW_RVL)
static s32 __card_sendCMD6(s32 drv_no,u32 switch_func)
{
s32 ret;
Expand All @@ -997,6 +998,7 @@ static s32 __card_sendCMD6(s32 drv_no,u32 switch_func)
if((ret=__card_response1(drv_no))!=0) return ret;
return __card_dataread(drv_no,_ioResponse[drv_no],64);
}
#endif

static s32 __card_sendCMD8(s32 drv_no)
{
Expand Down
Loading

0 comments on commit fdb6900

Please sign in to comment.