#!/bin/csh

# See "http://www.umr.edu/~bmartin/snes.htm" for OpenSPC

switch ($1)
	
	case play:
		ospc -p "$2"
		exit 0
	breaksw
	
	case isOurFile:
		if ( `echo "$2" | tail -c 5` == ".spc" ) then
			exit 0
		else
			exit -1
		endif
	breaksw
	
endsw

exit -1
