Ver Fonte

Stop SDL from inhibiting sleep. (#4842)

John há 2 anos atrás
pai
commit
ec0bb74968
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/Ryujinx.SDL2.Common/SDL2Driver.cs

+ 1 - 0
src/Ryujinx.SDL2.Common/SDL2Driver.cs

@@ -63,6 +63,7 @@ namespace Ryujinx.SDL2.Common
                 SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
                 SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED, "0");
                 SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS, "1");
+                SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");
 
 
                 // NOTE: As of SDL2 2.24.0, joycons are combined by default but the motion source only come from one of them.