mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-23 11:25:56 +00:00
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:
1 parent
19791edb94
commit
36d82ecc78
3 files changed
+67
-3
No files matched your search
@@ -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.
|
||||
Reference in new issue
Block a user