blob: 7234b4fc8869c33ca1c76c63448132050c219b83 (
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
|
#!/bin/bash
#
# simple launcher by carstene1ns 2014
#
# get script name
script=${0##*/}
# get game mode
mode=${script#theme-hospital-}
case "$mode" in
client)
EXTRACONF=dosboxth_client.conf
;;
server)
EXTRACONF=dosboxth_server.conf
;;
settings)
EXTRACONF=dosboxth_settings.conf
;;
*)
EXTRACONF=dosboxth_single.conf
esac
# launch
cd /opt/theme-hospital && exec dosbox -conf dosboxth.conf -conf $EXTRACONF
# eof
|