]> skyeroc.xyz Git - dgamelaunch/commitdiff
fix case where argv[1] == ENOENT
authorJoshua Kwan <joshk@triplehelix.org>
Tue, 6 Jan 2004 05:03:30 +0000 (05:03 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Tue, 6 Jan 2004 05:03:30 +0000 (05:03 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@102 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index 2529d9cf85d9c53b4c4f20a6ff90edbf80471a1f..4c57f86d6817a599bb51aea5f219b4b3c9b443c1 100644 (file)
@@ -137,6 +137,11 @@ create_config ()
       fclose(config_file);
       free (config);
     }
+    else
+    {
+      myconfig = &defconfig;
+      return;
+    }
 
     /* Fill the rest with defaults */
     if (!myconfig->shed_user && myconfig->shed_uid == 0)
@@ -314,9 +319,9 @@ loadbanner (struct dg_banner *ban)
 
       memset (buf, 0, 80);
 
-      if (ban->len == 14)       /* menu itself needs 10 lines, 24 - 10 */
-        break;
-    }
+      if (ban->len == 12)       /* menu itself needs 12 lines, 24 - 12 */
+         break;
+  }
 
   fclose (bannerfile);
 }