shithub: choc

Download patch

ref: f5a56e4fd1441de9a5bd853dbff104645577ab7c
parent: f3b53778ca850ca0b01ff445000f4f07545b62fc
author: Simon Howard <fraggle@gmail.com>
date: Mon Mar 4 14:55:11 EST 2013

Display a message if gus_patch_path hasn't been configured.

Subversion-branch: /branches/v2-branch
Subversion-revision: 2567

--- a/src/gusconf.c
+++ b/src/gusconf.c
@@ -255,6 +255,17 @@
     char *dmxconf;
     gus_config_t config;
 
+    if (!strcmp(gus_patch_path, ""))
+    {
+        printf("You haven't configured gus_patch_path.\n");
+        printf("gus_patch_path needs to point to the location of "
+               "your GUS patch set.\n"
+               "To get a copy of the \"standard\" GUS patches, "
+               "download a copy of dgguspat.zip.\n");
+
+        return false;
+    }
+
     dmxconf = ReadDMXConfig();
     ParseDMXConfig(dmxconf, &config);