Browse Source

autotest: make bat files work with multiple versions of flightgear

master
Andrew Tridgell 9 years ago
parent
commit
59e4e8def6
  1. 5
      Tools/autotest/fg_plane_view.bat
  2. 6
      Tools/autotest/fg_quad_view.bat

5
Tools/autotest/fg_plane_view.bat

@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
set AUTOTESTDIR="%~dp0\aircraft"
c:
cd "\Program Files\FlightGear 3.4.0\bin"
FOR /F "delims=" %%D in ('dir /b "\Program Files"\FlightGear*') DO set FGDIR=%%D
echo "Using FlightGear %FGDIR%"
cd "\Program Files\%FGDIR%\bin"
fgfs ^
--native-fdm=socket,in,10,,5503,udp ^
--fdm=external ^

6
Tools/autotest/fg_quad_view.bat

@ -1,7 +1,9 @@ @@ -1,7 +1,9 @@
set AUTOTESTDIR="%~dp0\aircraft"
c:
cd "\Program Files\FlightGear 3.4.0\bin"
FOR /F "delims=" %%D in ('dir /b "\Program Files"\FlightGear*') DO set FGDIR=%%D
echo "Using FlightGear %FGDIR%"
cd "\Program Files\%FGDIR%\bin"
fgfs ^
--native-fdm=socket,in,10,,5503,udp ^
--fdm=external ^

Loading…
Cancel
Save