Files @ r28229:bc38c237048d
Branch filter:

Location: cpp/openttd-patchpack/source/os/windows/winstore/set-version.bat

Peter Nelson
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.
@echo off
if [%1]==[] goto err

powershell -File "%~dp0set-version.ps1" %1 > "%temp%\ottd-set-version.bat"
if not errorlevel 0 goto err
call "%temp%\ottd-set-version.bat"
del /q "%temp%\ottd-set-version.bat"

@rem Version number will now be in %OTTD_VERSION%

goto :eof

:err
echo Please supply the path of openttd.exe as the argument to this batch file.