;************************************
;* CCS64 v2.0b DirectX GEMUS Script *
;*         by James Burrows         *
;*           25 July 2001           *
;************************************
;
; Emulator File:	CCS.EXE
; Associated File (1):	C64.CFG
; Use Short Filenames:	YES
; File Types:           T64;PRG;P00;P01;D64;G64;G41;CRT;TAP


If GameType CONTAINS(t64||prg||p00||p01||d64||g64||g41||crt||tap)
	
	;load the selected game image	
	Add_CLP(%gamepathfile%)
	If GameType CONTAINS(d64||t64)
		Add_CLP(,%imageindex%)
		
		;true drive emulation?
		If TrueDriveEmu = NO
			Add_CLP( -fastload)
		Else
			Add_CLP( -normalload)
		End If
	End If

	;autorun the loaded image
	Add_CLP( -autorun)

	;set the game path for the emulator
	Set_CFG_Value(1||$LOADPATH||%gamepath%)

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