foxygit / doom Log in
commit f5a56e4fd1441de9a5bd853dbff104645577ab7c
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Mon Mar 4 19:55:11 2013 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Mon Mar 4 19:55:11 2013 +0000

    Display a message if gus_patch_path hasn't been configured.

    Subversion-branch: /branches/v2-branch
    Subversion-revision: 2567
---
 src/gusconf.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/gusconf.c b/src/gusconf.c
index 8efd9803..e4be25e2 100644
--- a/src/gusconf.c
+++ b/src/gusconf.c
@@ -255,6 +255,17 @@ boolean GUS_WriteConfig(char *path)
     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);