-fixed sd cards doesn't work in wii games (issue 11)

This commit is contained in:
fix94.1 2012-02-13 15:40:10 +00:00
parent 128254c489
commit 1277fd0c6e
2 changed files with 5 additions and 2 deletions

View File

@ -223,6 +223,6 @@ const DISC_INTERFACE __io_sdhc = {
(FN_MEDIUM_READSECTORS)&SDHC_ReadSectors, (FN_MEDIUM_READSECTORS)&SDHC_ReadSectors,
(FN_MEDIUM_WRITESECTORS)&SDHC_WriteSectors, (FN_MEDIUM_WRITESECTORS)&SDHC_WriteSectors,
(FN_MEDIUM_CLEARSTATUS)&SDHC_ClearStatus, (FN_MEDIUM_CLEARSTATUS)&SDHC_ClearStatus,
//(FN_MEDIUM_SHUTDOWN)&SDHC_Close (FN_MEDIUM_SHUTDOWN)&SDHC_Close
(FN_MEDIUM_SHUTDOWN)&__io_SDHC_Close //(FN_MEDIUM_SHUTDOWN)&__io_SDHC_Close
}; };

View File

@ -72,6 +72,9 @@ void __Disc_SetLowMem()
// Fix for Sam & Max (WiiPower) // Fix for Sam & Max (WiiPower)
*(vu32 *)0x80003184 = 0x80000000; *(vu32 *)0x80003184 = 0x80000000;
/* Flush cache */
DCFlushRange((void *)0x80000000, 0x3F00);
} }
GXRModeObj * __Disc_SelectVMode(u8 videoselected, u64 chantitle) GXRModeObj * __Disc_SelectVMode(u8 videoselected, u64 chantitle)