;*****************************
;* WinVICE      GEMUS Script *
;*     by James Burrows      *
;*       22 Apr 2002         *
;*****************************
;
; Emulator File:        X64.EXE
; Associated Files:     None
; Use Short Filenames:  YES
; File Types:           T64;PRG;P00;D64;G64;G41;CRT;TAP

;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()


