mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
13 lines
552 B
PowerShell
13 lines
552 B
PowerShell
#########################################################
|
|
# Common functions for OpenRCT2 PowerShell scripts
|
|
#########################################################
|
|
|
|
function Prompt-User($message)
|
|
{
|
|
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", "Yes"
|
|
$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", "No"
|
|
$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no)
|
|
$choice = $host.UI.PromptForChoice("", $message, $options, 1)
|
|
return ($choice -eq 0)
|
|
}
|