diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-02-18 12:55:01 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-03-29 19:53:57 +0200 |
commit | c70d7a8c1fdf97aecc1e2a3a182fa1f3c091520a (patch) | |
tree | 0defd08159f04fb4d89022a157923ba152321c78 /src/modules.c | |
parent | a782675c1580b6e9df12c8e1b73aee82be2051ec (diff) |
Remove conditional compilation based on PRIVATE_USER_PATH. It is always set.
Diffstat (limited to 'src/modules.c')
-rw-r--r-- | src/modules.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/modules.c b/src/modules.c index 60c3b35d..39b41d20 100644 --- a/src/modules.c +++ b/src/modules.c @@ -12,8 +12,6 @@ #include "angband.h" -#ifdef PRIVATE_USER_PATH - static void module_reset_dir_aux(cptr *dir, cptr new_path) { char buf[1024]; @@ -29,8 +27,6 @@ static void module_reset_dir_aux(cptr *dir, cptr new_path) quit(format("Unable to create module dir %s\n", *dir)); } -#endif - void module_reset_dir(cptr dir, cptr new_path) { cptr *d = 0; @@ -51,9 +47,6 @@ void module_reset_dir(cptr dir, cptr new_path) if (!strcmp(dir, "user")) d = &ANGBAND_DIR_USER; if (!strcmp(dir, "note")) d = &ANGBAND_DIR_NOTE; if (!strcmp(dir, "cmov")) d = &ANGBAND_DIR_CMOV; -#ifndef PRIVATE_USER_PATH - if (!strcmp(dir, "save")) d = &ANGBAND_DIR_SAVE; -#else /* PRIVATE_USER_PATH */ if ( #ifdef PRIVATE_USER_PATH_APEX !strcmp(dir, "apex") || @@ -81,7 +74,6 @@ void module_reset_dir(cptr dir, cptr new_path) module_reset_dir_aux(&ANGBAND_DIR_SAVE, new_path); } else -#endif /* PRIVATE_USER_PATH */ { /* Build the new path */ strnfmt(buf, 1024, "%s%s%s%s%s", ANGBAND_DIR_MODULES, PATH_SEP, new_path, PATH_SEP, dir); |