diff options
author | Julien Dessaux | 2020-12-24 15:18:24 +0100 |
---|---|---|
committer | Julien Dessaux | 2020-12-24 15:18:24 +0100 |
commit | b4dc5d6841f7ded5995e5f308509b1a3a034cbed (patch) | |
tree | 254466925238c53bd51372a57558ec68fdf78205 /example | |
parent | Implemented the configuration file format (diff) | |
download | shell-game-launcher-b4dc5d6841f7ded5995e5f308509b1a3a034cbed.tar.gz shell-game-launcher-b4dc5d6841f7ded5995e5f308509b1a3a034cbed.tar.bz2 shell-game-launcher-b4dc5d6841f7ded5995e5f308509b1a3a034cbed.zip |
Began implementing config validation
Diffstat (limited to 'example')
-rw-r--r-- | example/complete.yaml | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/example/complete.yaml b/example/complete.yaml index 31cea74..e8e36e1 100644 --- a/example/complete.yaml +++ b/example/complete.yaml @@ -10,7 +10,8 @@ App: - mkdir %w/userdata/%u/ttyrec Menus: - - Banner: 'Shell Game Launcher - Anonymous access%n======================================' + anonymous: + Banner: 'Shell Game Launcher - Anonymous access%n======================================' XOffset: 5 YOffset: 2 MenuEntries: @@ -23,13 +24,11 @@ Menus: - Key: w Label: watch Action: watch_menu - - Key: s - Label: scores - Action: scores - Key: q Label: quit Action: quit - - Banner: 'Shell Game Launcher%n===================' + logged_in: + Banner: 'Shell Game Launcher%n===================' XOffset: 5 YOffset: 2 MenuEntries: @@ -38,13 +37,19 @@ Menus: Action: play nethack3.7 - Key: o Label: edit game options - Action: options + Action: menu options - Key: w Label: watch - Action: watch_menu - - Key: s - Label: scores - Action: scores + Action: watch + - Key: r + Label: replay + Action: replay + - Key: c + Label: change password + Action: passwd + - Key: m + Label: change email + Action: chmail - Key: q Label: quit Action: quit @@ -53,4 +58,11 @@ Games: nethack3.7: ChrootPath: /opt/nethack FileMode: "0666" + ScoreCommands: + - exec /games/nethack -s all + - wait Commands: + - cp /games/var/save/%u%n.gz /games/var/save/%u%n.gz.bak + - exec /games/nethack -u %n + Env: + NETHACKOPTIONS: "@%ruserdata/%n/%n.nhrc" |