aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorJulien Dessaux2020-12-23 12:01:05 +0100
committerJulien Dessaux2020-12-23 12:01:05 +0100
commit484734ab36b06a9e6d35348e357312d99522302c (patch)
treecb8e57bd56316b1a111ab7a3f13444344deeca2f /example
parentInitial import (diff)
downloadshell-game-launcher-484734ab36b06a9e6d35348e357312d99522302c.tar.gz
shell-game-launcher-484734ab36b06a9e6d35348e357312d99522302c.tar.bz2
shell-game-launcher-484734ab36b06a9e6d35348e357312d99522302c.zip
Implemented the configuration file format
Diffstat (limited to 'example')
-rw-r--r--example/complete.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/example/complete.yaml b/example/complete.yaml
new file mode 100644
index 0000000..31cea74
--- /dev/null
+++ b/example/complete.yaml
@@ -0,0 +1,56 @@
+App:
+ WorkingDirectory: var/
+ MaxUsers: 512
+ AllowRegistration: true
+ MaxNickLen: 15
+ MenuMaxIdleTime: 600
+ PostLoginCommands:
+ - mkdir %w/userdata/%u
+ - mkdir %w/userdata/%u/dumplog
+ - mkdir %w/userdata/%u/ttyrec
+
+Menus:
+ - Banner: 'Shell Game Launcher - Anonymous access%n======================================'
+ XOffset: 5
+ YOffset: 2
+ MenuEntries:
+ - Key: l
+ Label: login
+ Action: login
+ - Key: r
+ Label: register
+ Action: register
+ - Key: w
+ Label: watch
+ Action: watch_menu
+ - Key: s
+ Label: scores
+ Action: scores
+ - Key: q
+ Label: quit
+ Action: quit
+ - Banner: 'Shell Game Launcher%n==================='
+ XOffset: 5
+ YOffset: 2
+ MenuEntries:
+ - Key: p
+ Label: play Nethack 3.7
+ Action: play nethack3.7
+ - Key: o
+ Label: edit game options
+ Action: options
+ - Key: w
+ Label: watch
+ Action: watch_menu
+ - Key: s
+ Label: scores
+ Action: scores
+ - Key: q
+ Label: quit
+ Action: quit
+
+Games:
+ nethack3.7:
+ ChrootPath: /opt/nethack
+ FileMode: "0666"
+ Commands: