;******************************
;* VICE v1.7 DOS GEMUS Script *
;*     by James Burrows       *
;*      15 August 2001        *
;******************************
;
; Emulator File:        X64.EXE
; Associated Files:     None
; Use Short Filenames:  YES
; File Types:           T64;PRG;P00;D64;G64;G41;CRT;TAP

If GameType CONTAINS(d64||t64||g64||g41||tap||crt||p00||prg)

	;autostart the game image
	If ImageName CONTAINS(*)
		Add_CLP(-autostart "%gamepathfile%:%c64imagename%")
	Else
		Add_CLP(-autostart %gamepathfile%)
	End If

	;do we want a PAL or NTSC setup?
	If PalNTSC = NTSC
		Add_CLP( -ntsc)
	Else
		Add_CLP( -pal)
	End If

	;true drive emulation?
	If GameType CONTAINS(d64||g64||g41)
		If TrueDriveEmu = YES
			Add_CLP( -truedrive)
		Else
			Add_CLP( +truedrive)
		End If
	End If

	;set the game control options
	If Control = Keyboard
		Add_CLP( -joydev1 0 -joydev2 0)
	ElseIf Control = JoyPort1
		Add_CLP( -joydev1 1 -joydev2 2)
	Else
		Add_CLP( -joydev1 2 -joydev2 1)
	End If

	;run the emulator
	Run_Emulator(DOSCLOSE)
Else
	;invalid game file type
	Show_Message(GAME_NOT_SUPPORTED%crlfx2%Supported types: D64, T64, G64/G41, TAP, CRT, P00, PRG)
End If

