Repository navigation
frontend: obs-main Windows startup, crash dialog and portable mode behind host files (#865) - #2176
Merged
Merged
Conversation
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 24, 2026
zackees
force-pushed
the
facade/865-windows-main
branch
from
October 24, 2026 15:53
ac644cb to
4a2c724
Compare
zackees
enabled auto-merge
October 24, 2026 15:53
6 of 7 tasks
This was referenced Oct 25, 2026
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Oct 25, 2026
… PCH (obs-rust#2359) obs-rust#2176 moved obs-main's Windows startup into its own unity group and kept obs-app.cpp's include order, shellapi.h before windows.h. In obs-app.cpp an earlier header had already pulled in windows.h; in the new group nothing does, so shellapi.h sees no EXTERN_C or DECLSPEC_IMPORT and the Windows x64 app build fails (C2086/C2146 in shellapi.h, nightly run 40162888607). PR CI never builds the app, so only the nightly saw it.
This was referenced Oct 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #865 (slice 3 of 3). Stacked on #2170: review only the last two commits.
Test: the test commit adds an assertion to test_frontend_obs_main_host that the Windows startup hook and portable mode stay undefined off Windows. This is a guard on a refactor, not a failing RED: the macros it checks were already undefined on Linux before this change.
GREEN:
A new Windows unity group,
frontend.windows-obs-main, holdsfrontend/utility/obs-main-host-windows.cpp.hppwith obs-main's Windows-only code:maincallsobs_main_host_early_init/show_help/shutdown, which have portable defaults.delete_oldest_filelosesstaticso the crash handler can use it.BASE_PATHandALLOW_PORTABLE_MODEare set by the host headers: macOS and Linux use.., Windows allows portable mode. Elsewhere obs-main keeps its defaults (../.., and portable mode only withENABLE_PORTABLE_CONFIG).The obs-main PCH loses its OS conditionals. Its Windows and macOS includes moved into the host headers.
Ratchet:
frontend/obs-main.cpp.hppand its PCH leave the baseline; 99 findings remain.There's no local Windows or macOS frontend build, so CI's platform builds are the first compile of the host files.