File tree 5 files changed +13
-6
lines changed
5 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,13 @@ static u8 dvdInited = 0;
82
82
static u8 dvdMounted = 0 ;
83
83
84
84
#ifndef HW_RVL
85
- static bool dvdStartup ()
85
+ static bool dvdStartup (DISC_INTERFACE * disc )
86
86
{
87
87
DVD_Mount ();
88
88
return true;
89
89
}
90
90
91
- static bool dvdIsInserted ()
91
+ static bool dvdIsInserted (DISC_INTERFACE * disc )
92
92
{
93
93
return true;
94
94
}
@@ -112,8 +112,8 @@ static int MountDVD(void)
112
112
DVD_Init ();
113
113
114
114
/* patch libogc DVD interface which appears to be broken on Gamecube */
115
- dvd -> startup = ( FN_MEDIUM_STARTUP ) dvdStartup ;
116
- dvd -> isInserted = ( FN_MEDIUM_ISINSERTED ) dvdIsInserted ;
115
+ * ( FN_MEDIUM_STARTUP * ) & dvd -> startup = dvdStartup ;
116
+ * ( FN_MEDIUM_ISINSERTED * ) & dvd -> isInserted = dvdIsInserted ;
117
117
#endif
118
118
dvdInited = 1 ;
119
119
}
@@ -127,7 +127,11 @@ static int MountDVD(void)
127
127
}
128
128
129
129
/* check if disc is found */
130
+ #ifdef HW_RVL
130
131
if (!dvd -> isInserted ())
132
+ #else
133
+ if (!dvd -> isInserted (dvd ))
134
+ #endif
131
135
{
132
136
GUI_WaitPrompt ("Error" ,"No Disc inserted !" );
133
137
return 0 ;
Original file line number Diff line number Diff line change 47
47
/**
48
48
* libOGC CARD System Work Area
49
49
*/
50
+ #ifndef CARD_WORKAREA
51
+ #define CARD_WORKAREA CARD_WORKAREA_SIZE
52
+ #endif
50
53
static u8 SysArea [CARD_WORKAREA ] ATTRIBUTE_ALIGN (32 );
51
54
52
55
/* Mega CD backup RAM stuff */
Original file line number Diff line number Diff line change @@ -319,8 +319,8 @@ void shutdown(void)
319
319
#ifdef HW_RVL
320
320
/* unmount all devices */
321
321
ISO9660_Unmount ("dvd:" );
322
- fatUnmount ("sd" );
323
- fatUnmount ("usb" );
322
+ fatUnmount ("sd: " );
323
+ fatUnmount ("usb: " );
324
324
325
325
/* shutdown all devices */
326
326
DI_Close ();
You can’t perform that action at this time.
0 commit comments