summarylogtreecommitdiffstats
path: root/fmsx.sh
blob: c9af0f8537531a7cb2e7a35956521d107b7214cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /bin/bash
#
# fmsx.sh
# Copyright (C) 2013 Adrian Perez <aperez@igalia.com>
#
# Distributed under terms of the MIT license.
#

declare -a args=( )
declare romdir=/usr/lib/fmsx

while [[ $# -gt 0 ]] ; do
	arg=$1
	shift
	case ${arg} in
		-home)
			romdir=$2
			shift
			;;
		-h | -help | --help)
			args=( "${args[@]}" -help )
			;;
		*)
			args=( "${args[@]}" "${arg}" )
			;;
	esac
done

exec /usr/lib/fmsx/fmsx -home "${romdir}" "${args[@]}"