From 8da9e3acdc286aec28da1e541c39553bc5addb93 Mon Sep 17 00:00:00 2001 From: Joshua Kwan Date: Mon, 5 Jan 2004 01:57:25 +0000 Subject: [PATCH] Quick fix git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@84 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- dgamelaunch.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dgamelaunch.c b/dgamelaunch.c index f8a202d..1455190 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -158,6 +158,7 @@ create_config () } if (myconfig->max == 0) myconfig->max = defconfig.max; + if (!myconfig->banner) myconfig->banner = strdup(defconfig.banner); if (!myconfig->chroot) myconfig->chroot = strdup(defconfig.chroot); if (!myconfig->nethack) myconfig->nethack = strdup(defconfig.nethack); if (!myconfig->dglroot) myconfig->dglroot = strdup(defconfig.dglroot); @@ -1318,7 +1319,7 @@ purge_stale_locks (void) } int -main (void) +main (int argc, char** argv) { /* for chroot and program execution */ char atrcfilename[81], *spool; @@ -1327,6 +1328,9 @@ main (void) int userchoice = 0; + if (argc == 2) + config = strdup(argv[1]); + create_config(); /* coredumper */