]> skyeroc.xyz Git - dgamelaunch/commitdiff
Add 'variables' to dgamelaunch.conf
authorsbkelley <sb24kelley@gmail.com>
Mon, 1 Jun 2026 21:00:32 +0000 (17:00 -0400)
committersbkelley <sb24kelley@gmail.com>
Mon, 1 Jun 2026 21:00:32 +0000 (17:00 -0400)
examples/dgamelaunch.conf

index 187d52659b10420a2b08cbef9e7b38618cc958f2..89f29247adf6683542b47c020dc5cde257ded30a 100644 (file)
@@ -41,10 +41,10 @@ maxnicklen = 10
 #                 ]
 
 # Path to a prepared chroot jail.
-chroot_path = "/opt/nethack/nethack.alt.org/"
+chroot_path = "(:chroot:)"
 
 # From inside the jail, dgamelaunch's working directory for rcfiles/ttyrec/etc
-dglroot = "/dgldir/"
+dglroot = "(:var:)/"
 
 # Strings to be replaced in every banner
 # you can have either direct string replacements, like
@@ -63,7 +63,7 @@ bannervars = [ "$MOTDTIME" = "2011.10.08",
 # - $VERSION replaced with "dgamelaunch v" + dgl version number.
 # - $USERNAME replaced with logged-in user's name, or with "[Anonymous]"
 # - $INCLUDE(filename) the named file will be inserted here.
-banner = "/dgl-banner"
+banner = "(:menudir:)/dgl-banner"
 
 # The following two options are fairly insecure. They will force us to
 # load the password/group database into memory while still having root
@@ -203,7 +203,7 @@ filemode = "0666"
 
 # First, the menu shown to anonymous user:
 menu["mainmenu_anon"] {
-        bannerfile = "dgl_menu_main_anon.txt"
+        bannerfile = "(:menudir:)/dgl_menu_main_anon.txt"
         cursor = (5,18)
         commands["l"] = ask_login
         commands["r"] = ask_register
@@ -227,7 +227,7 @@ menu["mainmenu_user"] {
 #       "r" (reverse) or "d" (dim),
 #       or both color number and attribute characters, separated by colon.
 #       Empty param resets color and attributes to default.
-        bannerfile = "dgl_menu_main_user.txt"
+        bannerfile = "(:menudir:)dgl_menu_main_user.txt"
 # after which cursor is moved to this location
 # if cursor-definition is missing, the cursor is put
 # to the end of the last line of the banner.
@@ -238,7 +238,7 @@ menu["mainmenu_user"] {
         commands["c"] = chpasswd
         commands["e"] = chmail
         commands["w"] = watch_menu
-        commands["o"] = ifnxcp "/dgl-default-rcfile.nh343" "%ruserdata/%n/%n.nh343rc",
+        commands["o"] = ifnxcp "(:etc:)/dgl-default-rcfile.nh343" "%ruserdata/%n/%n.nh343rc",
                        exec "/bin/virus" "%ruserdata/%n/%n.nh343rc"
         commands["p"] = play_game "NH343"
         commands["q"] = quit
@@ -246,7 +246,7 @@ menu["mainmenu_user"] {
 
 # this menu is shown when user presses '?' in the watching menu
 menu["watchmenu_help"] {
-       bannerfile = "dgl_menu_watchmenu_help.txt"
+       bannerfile = "(:menudir:)dgl_menu_watchmenu_help.txt"
        commands["qQ "] = return
 }
 
@@ -381,7 +381,7 @@ DEFINE {
   game_args = "/nh343/nethack", "-u", "%n"
 
   spooldir = "/mail/"
-  rc_template = "/dgl-default-rcfile.nh343"
+  rc_template = "(:etc:)/dgl-default-rcfile.nh343"
 
   rc_fmt = "%ruserdata/%n/%n.nh343rc"
 
@@ -394,7 +394,7 @@ DEFINE {
 
 
   # back up savefile
-  commands = cp "/nh343/var/save/%u%n.gz" "/nh343/var/save/%u%n.gz.bak",
+  commands = cp "(:playground:)/save/%u%n.gz" "(:playground:)/save/%u%n.gz.bak",
   # set NETHACKOPTIONS to point to the rcfile
              setenv "NETHACKOPTIONS" "@%ruserdata/%n/%n.nh343rc",
   # set up nethack mail stuff, assuming it's compiled with it...