Handle Windows elevation-required errors when launching the game

Play failed with ERROR_ELEVATION_REQUIRED (740) for clients whose
executable requires administrator rights, because Command::spawn shows
no permission prompt. Launch normally first and, only on 740, start the
game through ShellExecuteExW with the runas verb, keeping the client
folder as the working directory and closing the returned process handle.
Other errors, including a declined prompt (1223), are returned unchanged.
The Manager itself stays unelevated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SomeBigFaceandClaude Opus 5.5 committed 2026-10-20 13:50:02 -07:00
1 parent 19791edb94
commit 36d82ecc78
3 files changed
+67 -3

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
---
area: manager
type: fixed
audience: players
title: Play can launch Windows clients that require administrator approval
---
Windows now shows its normal permission prompt when the game requires elevation. Other launch errors retain their original details.