diff --git a/source/ngc/fceugx.cpp b/source/ngc/fceugx.cpp index a3fb6a7..2789737 100644 --- a/source/ngc/fceugx.cpp +++ b/source/ngc/fceugx.cpp @@ -182,21 +182,22 @@ int main(int argc, char *argv[]) #endif #ifdef HW_RVL + DI_Close(); DI_Init(); // first #endif - int selectedMenu = -1; - InitDeviceThread(); - - InitGCVideo (); - ResetVideo_Menu (); // change to menu video mode - - // Controllers + VIDEO_Init(); PAD_Init(); #ifdef HW_RVL WPAD_Init(); + #endif + + InitGCVideo (); + 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); @@ -247,6 +248,8 @@ int main(int argc, char *argv[]) if(argc > 0 && argv[0] != NULL) CreateAppPath(argv[0]); + int selectedMenu = -1; + // Load preferences if(!LoadPrefs()) { diff --git a/source/ngc/gcvideo.cpp b/source/ngc/gcvideo.cpp index 058565c..ff345d6 100644 --- a/source/ngc/gcvideo.cpp +++ b/source/ngc/gcvideo.cpp @@ -472,9 +472,6 @@ UpdatePadsCB () void InitGCVideo () { - // init video - VIDEO_Init (); - // get default video mode vmode = VIDEO_GetPreferredMode(NULL);