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;
|
static u8 dvdMounted = 0;
|
||||||
|
|
||||||
#ifndef HW_RVL
|
#ifndef HW_RVL
|
||||||
static bool dvdStartup()
|
static bool dvdStartup(DISC_INTERFACE *disc)
|
||||||
{
|
{
|
||||||
DVD_Mount();
|
DVD_Mount();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool dvdIsInserted()
|
static bool dvdIsInserted(DISC_INTERFACE *disc)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -112,8 +112,8 @@ static int MountDVD(void)
|
|||||||
DVD_Init();
|
DVD_Init();
|
||||||
|
|
||||||
/* patch libogc DVD interface which appears to be broken on Gamecube */
|
/* patch libogc DVD interface which appears to be broken on Gamecube */
|
||||||
dvd->startup = (FN_MEDIUM_STARTUP)dvdStartup;
|
*(FN_MEDIUM_STARTUP *)&dvd->startup = dvdStartup;
|
||||||
dvd->isInserted = (FN_MEDIUM_ISINSERTED)dvdIsInserted;
|
*(FN_MEDIUM_ISINSERTED *)&dvd->isInserted = dvdIsInserted;
|
||||||
#endif
|
#endif
|
||||||
dvdInited = 1;
|
dvdInited = 1;
|
||||||
}
|
}
|
||||||
@ -127,7 +127,11 @@ static int MountDVD(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* check if disc is found */
|
/* check if disc is found */
|
||||||
|
#ifdef HW_RVL
|
||||||
if(!dvd->isInserted())
|
if(!dvd->isInserted())
|
||||||
|
#else
|
||||||
|
if(!dvd->isInserted(dvd))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
GUI_WaitPrompt("Error","No Disc inserted !");
|
GUI_WaitPrompt("Error","No Disc inserted !");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -47,6 +47,9 @@
|
|||||||
/**
|
/**
|
||||||
* libOGC CARD System Work Area
|
* libOGC CARD System Work Area
|
||||||
*/
|
*/
|
||||||
|
#ifndef CARD_WORKAREA
|
||||||
|
#define CARD_WORKAREA CARD_WORKAREA_SIZE
|
||||||
|
#endif
|
||||||
static u8 SysArea[CARD_WORKAREA] ATTRIBUTE_ALIGN (32);
|
static u8 SysArea[CARD_WORKAREA] ATTRIBUTE_ALIGN (32);
|
||||||
|
|
||||||
/* Mega CD backup RAM stuff */
|
/* Mega CD backup RAM stuff */
|
||||||
|
@ -319,8 +319,8 @@ void shutdown(void)
|
|||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
/* unmount all devices */
|
/* unmount all devices */
|
||||||
ISO9660_Unmount("dvd:");
|
ISO9660_Unmount("dvd:");
|
||||||
fatUnmount("sd");
|
fatUnmount("sd:");
|
||||||
fatUnmount("usb");
|
fatUnmount("usb:");
|
||||||
|
|
||||||
/* shutdown all devices */
|
/* shutdown all devices */
|
||||||
DI_Close();
|
DI_Close();
|
||||||
|
Loading…
Reference in New Issue
Block a user