diff options
author | e2dk4r <43293320+e2dk4r@users.noreply.github.com> | 2024-09-28 11:44:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-28 10:44:23 +0200 |
commit | 5dbba07e33e83c9047dcbb701c9655edbbe89086 (patch) | |
tree | 1ed976811b4df9d63c4de04886feb2a4bc05c9a7 | |
parent | d86249cb0add1504c0d3a5c41527cbef43346742 (diff) |
sdl: set app name (#7370)1.1.1401
Ryujinx was not hinting application name, so on some platforms (e.g.
Linux) volume control shows Ryujinx as 'SDL Application'. This can cause
confusion.
This commit fixes name in volume control applets on some platforms.
see: https://wiki.libsdl.org/SDL2/SDL_HINT_APP_NAME
-rw-r--r-- | src/Ryujinx.SDL2.Common/SDL2Driver.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Ryujinx.SDL2.Common/SDL2Driver.cs b/src/Ryujinx.SDL2.Common/SDL2Driver.cs index ed6d9419..9827156d 100644 --- a/src/Ryujinx.SDL2.Common/SDL2Driver.cs +++ b/src/Ryujinx.SDL2.Common/SDL2Driver.cs @@ -53,6 +53,7 @@ namespace Ryujinx.SDL2.Common return; } + SDL_SetHint(SDL_HINT_APP_NAME, "Ryujinx"); SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1"); SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1"); SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1"); |