mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1242] runtime/shims: shim Win32 localization, priority-boost, and named-pipe APIs (RT-WIN32-ENV-LOC-PIPE) #1274
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#1274
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/1242
Author: @piyonchu
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:pr/win32-loc-priority-pipe-shims📝 Commits (1)
f222051runtime/shims: shim Win32 localization, priority-boost, and named-pipe APIs (RT-WIN32-ENV-LOC-PIPE)📊 Changes
4 files changed (+441 additions, -2 deletions)
View changed files
📝
runtime/CMakeLists.txt(+17 -0)➕
runtime/shims/win32_env.cpp(+261 -0)➕
runtime/test/win32_env_test.cpp(+161 -0)📝
scripts/build_runtime.ps1(+2 -2)📄 Description
Summary
Claim ID:
RT-WIN32-ENV-LOC-PIPEAdds
runtime/shims/win32_env.cppandruntime/test/win32_env_test.cpp(wired intoruntime/CMakeLists.txtandscripts/build_runtime.ps1, rebased ontocont/main871e4b8b9at1a8cc6253):GetUserDefaultGeoName,GetUserDefaultLocaleName, andLocaleNameToLCID(api-ms-win-core-localization-l1-2-{0,3}.dll,kernel32.dll,kernelbase.dll) with offline fallback andLEONIDA_GEO/LEONIDA_LOCALEoverrides.SetProcessPriorityBoost(api-ms-win-core-processthreads-l1-1-2.dll,kernel32.dll,kernelbase.dll) in-process so title priority-boost toggles do not mutate the hostgta6rtscheduler policy.WaitNamedPipeA/WandSetNamedPipeHandleState(api-ms-win-core-namedpipe-l1-1-0.dll,kernel32.dll,kernelbase.dll), preservingERROR_BAD_PATHNAMEforWaitNamedPipeA/W(nullptr)without faulting on Windows 11.win32_envandwin32_env_overrideCTest cases inruntime/test/win32_env_test.cpp.Verification
10.0.26100SDK), MSVC (RelWithDebInfo).ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure:100% tests passed out of 149(includingwin32_envandwin32_env_override), with 7 game-data tests skipped (LEONIDA_GAME_DIRunset) and 2gameinputtests disabled (no SDL3).python -I tests/test_build_runtime_fallback.py:Ran 10 tests ... OK.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.