@rem first parameter is the config to load
@rem second parameter is which executable to run on the harddrive when booting the machine
@rem third parameter is the path to a floppy disk image (will override parameter %2)

@cd "%~dp0.."
@set UAEOtherParms=


@if x%3 == x goto bootHD
@echo Booting Amiga in %1 mode, and starting disk %cd%\%3
@set UAEOtherParms=%UAEOtherParms% -s floppy0="%cd%\%3"
@goto BootFloppy
:bootHD
@echo Booting Amiga in %1 mode, and starting %2 on the HD
:BootFloppy

@echo /|set /p =%2>dh0\s\startup-sequence

@set UAEConfig=%1AF.uae
@if exist .\winuae\rom.key goto AmigaForever
@set UAEConfig=%1.uae
:AmigaForever

@start .\winuae\winuae.exe -config=%UAEConfig% %UAEOtherParms%
