mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
libobs: Fix Windows 10/11 Gamemode/HAGS detection
It seems that the older key still exists on Win 11 and 10 but is always set to 0, so use the newer to start with and fall back to the old one if necessary. Additionally, if the key for HAGS and GameMode do not exist assume they're on as this is the default on Win 11. On Windows 10 game mode is also on by default in recent versions. Also changes "10" to "10/11" just for correctness.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f