Files
@ r28229:bc38c237048d
Branch filter:
Location: cpp/openttd-patchpack/source/os/windows/winstore/set-version.ps1 - annotation
r28229:bc38c237048d
564 B
text/x-powershell
Codechange: Rearrange AI/GS debug window following invalidate/set state/draw pattern. (#11483)
The AI/GS window updated its state as it was drawn, and would redraw again if some state had changed.
Instead, update state either during OnInvalidateData or before any drawing commences.
The AI/GS window updated its state as it was drawn, and would redraw again if some state had changed.
Instead, update state either during OnInvalidateData or before any drawing commences.
r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 r26240:362f75d604f5 | [CmdletBinding()]
[Alias()]
Param
(
# EXE path
[Parameter(Mandatory=$true, Position=0)]
$ExePath
)
try
{
$versionInfo = (Get-Item "$ExePath").VersionInfo
# Generate the app version - the build number (MS calls it revision) is always 0 because the Windows Store requires that
$AppVersion = "$($versionInfo.FileMajorPart).$($versionInfo.FileMinorPart).$($versionInfo.FileBuildPart).0"
Write-Output "SET OTTD_VERSION=$($AppVersion)"
}
catch
{
Write-Output "@ECHO Error retrieving EXE version - did you provide a path?"
exit 1
}
|