mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-25 20:16:53 +01:00
This commit is contained in:
parent
931f7553b0
commit
fde5171e0c
@ -167,16 +167,22 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
#ifdef HW_RVL
|
||||
DI_Close();
|
||||
DI_Init(); // first
|
||||
#endif
|
||||
|
||||
InitDeviceThread();
|
||||
|
||||
// Initialise controllers
|
||||
VIDEO_Init();
|
||||
PAD_Init();
|
||||
|
||||
#ifdef HW_RVL
|
||||
WPAD_Init();
|
||||
#endif
|
||||
|
||||
InitialiseVideo();
|
||||
ResetVideo_Menu (); // change to menu video mode
|
||||
|
||||
#ifdef HW_RVL
|
||||
// read wiimote accelerometer and IR data
|
||||
WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR);
|
||||
WPAD_SetVRes(WPAD_CHAN_ALL,640,480);
|
||||
@ -187,11 +193,6 @@ int main(int argc, char *argv[])
|
||||
SYS_SetResetCallback(ResetCB);
|
||||
#endif
|
||||
|
||||
int selectedMenu = -1;
|
||||
|
||||
InitialiseVideo();
|
||||
ResetVideo_Menu (); // change to menu video mode
|
||||
|
||||
// Initialise freetype font system
|
||||
if (FT_Init ())
|
||||
{
|
||||
@ -222,6 +223,8 @@ int main(int argc, char *argv[])
|
||||
if(argc > 0 && argv[0] != NULL)
|
||||
CreateAppPath(argv[0]);
|
||||
|
||||
int selectedMenu = -1;
|
||||
|
||||
// Load preferences
|
||||
if(!LoadPrefs())
|
||||
{
|
||||
|
@ -269,9 +269,6 @@ UpdatePadsCB ()
|
||||
****************************************************************************/
|
||||
void InitialiseVideo ()
|
||||
{
|
||||
/*** Start VIDEO Subsystem ***/
|
||||
VIDEO_Init();
|
||||
|
||||
vmode = VIDEO_GetPreferredMode(NULL);
|
||||
|
||||
switch (vmode->viTVMode >> 2)
|
||||
|
Loading…
Reference in New Issue
Block a user