mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1240] runtime/shims: shim PSM app-notification and WER file registration APIs (RT-PSM-APPNOTIFY-WER) #1270
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1270
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1240
Author: @piyonchu
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:pr/psm-appnotify-wer-shims📝 Commits (1)
677379bruntime/shims: shim PSM app-notification and WER file registration APIs (RT-PSM-APPNOTIFY-WER)📊 Changes
4 files changed (+412 additions, -2 deletions)
View changed files
📝
runtime/CMakeLists.txt(+15 -0)➕
runtime/shims/appnotify.cpp(+236 -0)➕
runtime/test/appnotify_test.cpp(+159 -0)📝
scripts/build_runtime.ps1(+2 -2)📄 Description
Summary
Claim ID:
RT-PSM-APPNOTIFY-WERAdds
runtime/shims/appnotify.cppandruntime/test/appnotify_test.cpp(wired intoruntime/CMakeLists.txtandscripts/build_runtime.ps1):RegisterAppConstrainedChangeNotificationandUnregisterAppConstrainedChangeNotificationacrosskernel32.dll,kernelbase.dll,twinapi.appcore.dll, andapi-ms-win-core-psm-appnotify-l1-1-0/1.dll, returning distinct tracked registration handles, ignoringnullptr/foreign/already-freed handles cleanly on unregister, and using constant-initializedSRWLOCK+ raw lists to avoid MSVC TLS init guards. (RegisterAppStateChangeNotificationandUnregisterAppStateChangeNotificationare left out so they do not collide with#769.)WerRegisterFile/WerUnregisterFileacrosskernel32.dll,kernelbase.dll,wer.dll, andapi-ms-win-core-windowserrorreporting-l1-1-0/1.dll, tracking normalizedGAME:/G:/T:and host paths in-process without mutating host WER state or creating files on disk.runtime/test/appnotify_test.cppexecuted viart::shims::find.Verification
10.0.26100SDK), MSVC (RelWithDebInfo), rebased ontocont/main(871e4b8b9), commitb607337fd.ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure:100% tests passed out of 148(including#83 appnotify), with 7 game-data tests skipped (LEONIDA_GAME_DIRunset) and 2gameinputtests disabled (no SDL3).python -I tests/test_build_runtime_fallback.py: passed (10/10).python -I scripts/check_no_game_data.py ...andgit diff --check cont/main..HEAD: clean.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.