From b4dc5d6841f7ded5995e5f308509b1a3a034cbed Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 24 Dec 2020 15:18:24 +0100 Subject: Began implementing config validation --- example/complete.yaml | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) (limited to 'example') 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" -- cgit v1.2.3