Add SDL_NumJoysticks() to SDL library test
Some builds of SDL lack joystick support. Rebirth requires joystick support in SDL, even if the user never connects a joystick. Add a call to SDL_NumJoysticks during the SDL test so that systems without SDL joystick support fail the "usable library SDL" test.
This commit is contained in:
parent
7673bba50d
commit
f1021de448
|
@ -616,6 +616,8 @@ int main(int argc,char**argv){(void)argc;(void)argv;
|
|||
self._check_system_library(context,header=['SDL.h'],main='''
|
||||
SDL_RWops *ops = reinterpret_cast<SDL_RWops *>(argv);
|
||||
SDL_Init(SDL_INIT_JOYSTICK | %s | SDL_INIT_VIDEO | SDL_INIT_AUDIO);
|
||||
auto n = SDL_NumJoysticks();
|
||||
(void)n;
|
||||
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
||||
SDL_FreeRW(ops);
|
||||
SDL_Quit();
|
||||
|
|
Loading…
Reference in a new issue