Skip to content

frontend: Settings dialog platform options behind host feature headers (#867) - #2180

Merged
zackees merged 2 commits into
masterfrom
facade/867-settings
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
facade/867-settings

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Fixes #867.

RED: the test commit adds test_frontend_settings_host, which fails to compile because frontend/settings/settings-{linux,macos,windows}.hpp don't exist yet.
GREEN: three self-guarded host headers, included from the settings PCH, name the features instead of the platforms:

  • OBS_SETTINGS_WINDOWS: audio ducking, hide from capture, process priority, socket loop, low latency, D3D11
  • OBS_SETTINGS_RENDERER: Windows, and macOS on aarch64
  • OBS_SETTINGS_MACOS_VSYNC
  • OBS_SETTINGS_BROWSER_HWACCEL: Windows, macOS, Linux
  • OBS_SETTINGS_PROJECTOR_ON_TOP: Windows, macOS
  • OBS_SETTINGS_FILENAME_UNSAFE: the per-OS regex of rejected characters

The updater sections use the existing OBS_PLATFORM_HAS_UPDATE_BRANCHES. OBSBasicSettings.cpp.hpp now has no platform macros, and its 29 findings leave the ratchet baseline.

Each feature macro covers exactly the platforms the old conditionals did, so behavior is unchanged.

@zackees
zackees force-pushed the facade/867-settings branch from da92e90 to a6ba248 Compare October 24, 2026 16:33
@zackees
zackees enabled auto-merge October 24, 2026 16:33
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 096c7fa Oct 24, 2026
35 checks passed
@zackees
zackees deleted the facade/867-settings branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

facade: frontend/settings/OBSBasicSettings.cpp: move 29 platform conditionals behind frontend/utility/platform.hpp

1 participant