mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-25 02:31:49 +01:00
Fix compile errors with latest libogc(2)
Fix unmounting FAT devices on Wii
This commit is contained in:
parent
378aa209c6
commit
ccabd03683
Binary file not shown.
Before Width: | Height: | Size: 3.8 MiB After Width: | Height: | Size: 3.9 MiB |
Binary file not shown.
Before Width: | Height: | Size: 4.0 MiB After Width: | Height: | Size: 4.1 MiB |
@ -82,13 +82,13 @@ static u8 dvdInited = 0;
|
||||
static u8 dvdMounted = 0;
|
||||
|
||||
#ifndef HW_RVL
|
||||
static bool dvdStartup()
|
||||
static bool dvdStartup(DISC_INTERFACE *disc)
|
||||
{
|
||||
DVD_Mount();
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool dvdIsInserted()
|
||||
static bool dvdIsInserted(DISC_INTERFACE *disc)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -112,8 +112,8 @@ static int MountDVD(void)
|
||||
DVD_Init();
|
||||
|
||||
/* patch libogc DVD interface which appears to be broken on Gamecube */
|
||||
dvd->startup = (FN_MEDIUM_STARTUP)dvdStartup;
|
||||
dvd->isInserted = (FN_MEDIUM_ISINSERTED)dvdIsInserted;
|
||||
*(FN_MEDIUM_STARTUP *)&dvd->startup = dvdStartup;
|
||||
*(FN_MEDIUM_ISINSERTED *)&dvd->isInserted = dvdIsInserted;
|
||||
#endif
|
||||
dvdInited = 1;
|
||||
}
|
||||
@ -127,7 +127,11 @@ static int MountDVD(void)
|
||||
}
|
||||
|
||||
/* check if disc is found */
|
||||
#ifdef HW_RVL
|
||||
if(!dvd->isInserted())
|
||||
#else
|
||||
if(!dvd->isInserted(dvd))
|
||||
#endif
|
||||
{
|
||||
GUI_WaitPrompt("Error","No Disc inserted !");
|
||||
return 0;
|
||||
|
@ -47,6 +47,9 @@
|
||||
/**
|
||||
* libOGC CARD System Work Area
|
||||
*/
|
||||
#ifndef CARD_WORKAREA
|
||||
#define CARD_WORKAREA CARD_WORKAREA_SIZE
|
||||
#endif
|
||||
static u8 SysArea[CARD_WORKAREA] ATTRIBUTE_ALIGN (32);
|
||||
|
||||
/* Mega CD backup RAM stuff */
|
||||
|
Loading…
Reference in New Issue
Block a user