@REM Set the EXES
@REM Old versions - but maps are NOT compatible
@REM set TEMPXM=C:\MDOS\Atlas\Map.exe
@REM set TEMPXA=C:\MDOS\Atlas\Atlas.exe
@set TEMPXA=bin\Atlas.exe
@set TEMPXM=bin\Map.exe
@REM set TEMPXM=bin\MapD.exe

@REM Set ROOT
@REM ########
@REM This will DEPEND where you cloned the FG base data...
@set TEMPROOT=C:\FG\28\data
@REM set TEMPROOT=..\..\..\data
@if NOT EXIST %TEMPROOT%\version goto ERRNR

@set TEMPS=..\..\src\data

@set TEMPFS=%TEMPS%\Fonts
@set TEMPF=%TEMPAT%\Fonts

@set TEMPF1=%TEMPF%\Helvetica-Bold.100.txf
@set TEMPSF1=%TEMPFS%\Helvetica-Bold.100.txf

@set TEMPF2=%TEMPF%\Helvetica.100.txf
@set TEMPSF2=%TEMPFS%\Helvetica.100.txf

@set TEMPSAP=%TEMPS%\Palettes
@set TEMPAP=%TEMPAT%\Palettes
@set TEMPAPD=%TEMPAP%\default.ap
@set TEMPSAPD=%TEMPSAP%\default.ap


@set TEMPBG=%TEMPAT%\background.jpg
@set TEMPSBG=%TEMPS%\background.jpg
@set TEMPAIRI=%TEMPAT%\airplane_image.png
@set TEMPAIRIS=%TEMPS%\airplane_image.png

@REM set the MAP command
@set TEMPMCMD=--verbose --fg-root=%TEMPROOT% --fg-scenery=%TEMPROOT%\Scenery --atlas=%TEMPAT% --palette=%TEMPAPD% --png
@REM set TEMPMCMD=--verbose --fg-root=%TEMPROOT% --fg-scenery=%TEMPROOT%\Scenery --atlas=%TEMPAT% --palette=%TEMPAPD% --render-to-window --png

@REM set the ATLAS command
@set TEMPACMD=--fg-root=%TEMPROOT% --fg-scenery=%TEMPROOT%\Scenery --atlas=%TEMPAT% --palette=%TEMPAPD%
@set TEMPACMD=%TEMPACMD% --udp=5500

@goto END

:ERRNR
@echo ERROR: Can NOT locate FG ROOT directory [%TEMPROOT%]...
@echo This MUST be fixed above to continue %0 batch file...
@echo Use Ctrl+C to abort, and FIX the batch file...
@pause
@echo.
@echo ERROR: Can NOT continue! USE CTRL+C, or Ctrl+break to ABORT
@echo.
@goto ERRNR
@goto END

:END
