1
0
mirror of synced 2024-11-30 17:34:33 +01:00

remove SDL Init Video as it caused crash on Supermodel Emu

This commit is contained in:
Boomslangnz 2023-11-25 20:48:05 +13:00
parent 34174939c5
commit 90a7acf23d

View File

@ -1076,7 +1076,7 @@ void Initialize(int device_index)
{ {
hlp.log("in initialize"); hlp.log("in initialize");
SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0"); SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0");
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER) < 0) if (SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER) < 0)
SDL_JoystickEventState(SDL_ENABLE); SDL_JoystickEventState(SDL_ENABLE);
SDL_JoystickUpdate(); SDL_JoystickUpdate();
char joystick_guid[256]; char joystick_guid[256];