From 271aa8a8194da5e4c38e9becf95d04aa50285f8a Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Wed, 21 Mar 2012 19:34:50 +0100 Subject: [PATCH] BUGFIX: installer now longer crashes on IOS58 + early controller init Installer now supports Classic-Controller + GC-Controller (partially) --- installer/source/menu.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/installer/source/menu.cpp b/installer/source/menu.cpp index dd56c74..21974d3 100644 --- a/installer/source/menu.cpp +++ b/installer/source/menu.cpp @@ -175,7 +175,7 @@ int menu_main(int scrollpos) scroll = false; } - if(WPAD_ButtonsDown(0) & (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) || PAD_ButtonsDown(0) & PAD_BUTTON_A) + if(WPAD_ButtonsDown(0) & (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) ||pad.buttons_d & PAD_BUTTON_A) { menu_main_choice = scrollpos; switch(scrollpos) @@ -248,7 +248,7 @@ int menu_install_uninstall(int install) scroll = false; } - if( WPAD_ButtonsDown(0) & (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) || PAD_ButtonsDown(0) & PAD_BUTTON_A ) + if( WPAD_ButtonsDown(0) & (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) ||pad.buttons_d & PAD_BUTTON_A ) { switch(scrollpos) { @@ -322,7 +322,7 @@ int menu_install() WPAD_ScanPads(); PAD_ScanPads(); - if( WPAD_ButtonsDown(0) & (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) || PAD_ButtonsDown(0) & PAD_BUTTON_A ) + if( WPAD_ButtonsDown(0) & (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) ||pad.buttons_d & PAD_BUTTON_A ) return MENU_MAIN; } } @@ -346,7 +346,7 @@ int menu_uninstall() { WPAD_ScanPads(); PAD_ScanPads(); - if( WPAD_ButtonsDown(0) & (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) || PAD_ButtonsDown(0) & PAD_BUTTON_A ) + if( WPAD_ButtonsDown(0) & (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) ||pad.buttons_d & PAD_BUTTON_A ) return MENU_MAIN; } } @@ -372,7 +372,7 @@ int menu_copyright() WPAD_ScanPads(); PAD_ScanPads(); - if( WPAD_ButtonsDown(0) & (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) || PAD_ButtonsDown(0) & PAD_BUTTON_A ) + if( WPAD_ButtonsDown(0) & (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) ||pad.buttons_d & PAD_BUTTON_A ) return MENU_MAIN; } }