summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2013-03-04 19:55:11 +0000
committerSimon Howard2013-03-04 19:55:11 +0000
commitf5a56e4fd1441de9a5bd853dbff104645577ab7c (patch)
treeba4563786cba214468d02989e4896573a4c86ee4
parentf3b53778ca850ca0b01ff445000f4f07545b62fc (diff)
downloadchocolate-doom-f5a56e4fd1441de9a5bd853dbff104645577ab7c.tar.gz
chocolate-doom-f5a56e4fd1441de9a5bd853dbff104645577ab7c.tar.bz2
chocolate-doom-f5a56e4fd1441de9a5bd853dbff104645577ab7c.zip
Display a message if gus_patch_path hasn't been configured.
Subversion-branch: /branches/v2-branch Subversion-revision: 2567
-rw-r--r--src/gusconf.c11
1 files changed, 11 insertions, 0 deletions
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);