-
Notifications
You must be signed in to change notification settings - Fork 1
/
start-triple
executable file
·33 lines (25 loc) · 1.04 KB
/
start-triple
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
31
32
33
#!/bin/bash
cd `dirname $0`
DOS=dosbox-0.74/src/dosbox
./scripts/check-fs4b `pwd`/FS4B/ || { echo "ERROR! Failed to find FS4B files" ; exit 1; }
set -xv
killall dosbox
xterm -e "( export LEFT=true && $DOS -conf dosbox-0.74.conf ./FS4B/FS4-L.EXE )" &
sleep 1s
xterm -e "( export RIGHT=true && $DOS -conf dosbox-0.74.conf ./FS4B/FS4-R.EXE )" &
# Start the server last so it doesn't transmit until the remotes are ready
sleep 1s
xterm -e "( export SERVER=true && $DOS -conf dosbox-0.74.conf ./FS4B/FS4-MAIN.EXE )" &
# Align all the windows to the correct displays
sleep 1s
# Needs +20 offset for first window or the titlebar is hidden
./scripts/move-dosbox-window "FS4-L" 0 20
sleep 1s
./scripts/move-dosbox-window "FS4-MAIN" 1920 0
sleep 1s
./scripts/move-dosbox-window "FS4-R" 3840 0
# Now configure each FS4 instance with a set of initial keystrokes
# Need to pad the label with spaces since DOSBox pads the name to 8 chars
./scripts/config-fs4-instance " FS4-L"
./scripts/config-fs4-instance " FS4-R"
./scripts/config-fs4-instance " FS4-MAIN"