|
|
1.1 root 1: #!/bin/sh
2: #
3: # Don't modify the 'path' or 'conf' variable names or initial values,
4: # those will be replaced by Makefile when this script is installed.
5:
6: path=${0%/*}
7: name=${0##*/}
8:
9: if [ ! -e $path/$name.py ]; then
10: # Assume package has been relocated, try relative data directory:
11: path=${0%/*}/../share/hatari/hatariui
12: fi
13:
14: # Assume hatari system configuration file dir is relative to hatariui dir
15: # (usually system config file isn't installed, but if defaults need to be
16: # configured differently from Hatari source code defaults, they're better
17: # done with system config file than patching sources).
18: conf=${path%/*}/../etc
19: # checked by hatari UI
20: export HATARI_SYSTEM_CONFDIR=$conf
21:
22: # example setup for Hatari UI
23: $path/$name.py --right "about,|,run,pause,forward,|,reset,|,quit" --embed $*
24: exit 0
25:
26: # test setup without embedding, dupplicate toggles
27: $path/$name.py --top "about,run,pause,quit" \
28: --panel "Testpanel,pause,>,close" \
1.1.1.2 ! root 29: --bottom "sound,|,forward,pause,|,Testpanel" \
1.1 root 30: $*
31: exit 0
32:
33: # test setup with embedding and all available controls
34: $path/$name.py --embed \
35: --top "about,|,run,pause,|,reset,debug,|,quit" \
36: --left "run,pause,reset,machine,about" \
37: --panel "Keys,F1=59,F2=60,F3=61,F4=62,F5=63,F6=64,F7=65,F8=66,F9=67,F10=68,>,Macro=Test,Undo=97,Help=98,Enter=114,>,close" \
1.1.1.2 ! root 38: --panel "Misc,|,forward,full,|,sound,>,shot,>,close" \
! 39: --bottom "forward,full,Misc,Keys,input,display,debug,trace" \
! 40: --right "forward,full,Misc,Keys,input,display,Help=98" \
1.1 root 41: $*
42: exit 0
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.