HLE: export constrained app notifications #1558
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1558
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1558/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Calvix2k on GitHub · 2026-11-24 19:10 UTC · original
Calvix2k:codex/hle-constrained-notifications-005→main· +72 −0 · 1 files · 2 commits · closed without mergingSummary
Adds the two missing exports from
api-ms-win-core-psm-appnotify-*:RegisterAppConstrainedChangeNotificationvalidates the callback and output pointer, stores the callback/context, and returns a registration token.UnregisterAppConstrainedChangeNotificationremoves the matching registration.Adds regression coverage for HLE export resolution and registration lifecycle. The ABI mirrors the existing app-state notification functions and the appnotify declarations used by Windows compatibility implementations.
Verification
cargo test -p victory-hle --locked -- --test-threads=1: 95 passed, 0 failed; integration test passed.cargo clippy -p victory-hle --all-targets --all-features --locked -- -D warnings: passed.rustfmt --edition 2024 --checkonlifecycle.rs: passed.cargo xtask policy: passed (154 files ok).No game assets used.
@acetonahard-code on GitHub · 2026-11-24 22:26 UTC · original
Tested on Windows 11 with the repo toolchain, merged into current
main(70564ae):cargo test -p victory-hlemainmain+ this PRcargo clippy --all-targets -- -D warnings, with and without--all-features: clean.I didn't test with game data.
Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.
@Marvisak on GitHub · 2026-11-25 00:42 UTC · original
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #1080. Stores constrained-change registrations but never calls them, so nothing changes for the title; #1080 serves the same two exports and calls the routines before suspend.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
@Calvix2k on GitHub · 2026-11-25 00:49 UTC · original
Superseded by main: origin/main now exports RegisterAppConstrainedChangeNotification and UnregisterAppConstrainedChangeNotification through lifecycle::CONSTRAINED (a Registration list shared with the suspend routines), so the title-visible behaviour this PR added is already there. Closing in favour of main; no part of the PR is lost.
Pull request closed