File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2444,6 +2444,10 @@ void CL_Shutdown()
24442444 CL_SendDisconnect ();
24452445 CL_StopRecord ();
24462446 StopVideo ();
2447+
2448+ // Just to avoid the SDL nag message "Leaked SDL_Gamepad (0x123456)" making us look bad
2449+ IN_ShutdownJoystick ();
2450+
24472451 // TODO: call DL_StopDownload when deleting the temp file is implemented
24482452 return ;
24492453 }
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ void IN_Shutdown()
5050{
5151}
5252
53+ void IN_ShutdownJoystick ()
54+ {
55+ }
56+
5357void IN_CenterMouse ()
5458{
5559}
Original file line number Diff line number Diff line change @@ -452,6 +452,7 @@ void IN_Frame();
452452void IN_FrameEnd ();
453453void IN_Restart ();
454454void IN_Shutdown ();
455+ void IN_ShutdownJoystick ();
455456bool IN_IsNumLockOn ();
456457void IN_DropInputsForFrame ();
457458void IN_CenterMouse ();
Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ static void IN_InitJoystick()
660660IN_ShutdownJoystick
661661===============
662662*/
663- static void IN_ShutdownJoystick ()
663+ void IN_ShutdownJoystick ()
664664{
665665 if ( gamepad )
666666 {
You can’t perform that action at this time.
0 commit comments