From a25b610c6ed241458ac724f8dfa767134a07c907 Mon Sep 17 00:00:00 2001 From: yabause Date: Fri, 31 Oct 2008 14:18:26 +0000 Subject: [PATCH] Patch by riccardom so desmume doesn't complain about joystick when there's no joystick. --- desmume/src/ctrlssdl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desmume/src/ctrlssdl.cpp b/desmume/src/ctrlssdl.cpp index d0683b9cd..e4b4b2638 100644 --- a/desmume/src/ctrlssdl.cpp +++ b/desmume/src/ctrlssdl.cpp @@ -96,9 +96,9 @@ BOOL init_joy( void) { } nbr_joy = SDL_NumJoysticks(); - printf("Nbr of joysticks: %d\n\n", nbr_joy); if ( nbr_joy > 0) { + printf("Found %d joysticks\n", nbr_joy); open_joysticks = (SDL_Joystick**)calloc( sizeof ( SDL_Joystick *), nbr_joy); @@ -137,7 +137,6 @@ void set_kb_keys(const u16 kbCfg[]) void uninit_joy( void) { int i; - printf("Disabling joystick support.\n"); if ( open_joysticks != NULL) { for (i = 0; i < SDL_NumJoysticks(); i++) {