Skip to content

Commit

Permalink
libobs: Fix Windows Game Mode detection on newer Windows 10 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
OsirisNL committed Dec 26, 2018
1 parent c961298 commit 7fd8743
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libobs/obs-windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ static void log_gaming_features(void)
L"HistoricalCaptureEnabled", &game_dvr_bg_recording);
get_reg_dword(HKEY_CURRENT_USER, WIN10_GAME_MODE_REG_KEY,
L"AllowAutoGameMode", &game_mode_enabled);
if (game_mode_enabled.status != ERROR_SUCCESS) {
get_reg_dword(HKEY_CURRENT_USER, WIN10_GAME_MODE_REG_KEY,
L"AutoGameModeEnabled", &game_mode_enabled);
}

blog(LOG_INFO, "Windows 10 Gaming Features:");
if (game_bar_enabled.status == ERROR_SUCCESS) {
Expand Down

0 comments on commit 7fd8743

Please sign in to comment.