Skip to content
Snippets Groups Projects
Commit 8d2f526b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Updated help text: added references to wiki, removed ref to alt file paths

Minor beautifications
parent 3527d0a0
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4066 passed
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <stdbool.h> #include <stdbool.h>
#define CUT_LIBNUM USHRT_MAX #define CUT_LIBNUM USHRT_MAX
#define ADDFILES_HELP "Help adding files to directories, see `http://wiki.synchro.net/faq:files`"
void dir_defaults_cfg(dir_t*); void dir_defaults_cfg(dir_t*);
...@@ -83,7 +84,9 @@ static char* max_files_help = ...@@ -83,7 +84,9 @@ static char* max_files_help =
"\n" "\n"
"This value is the maximum number of files allowed in this directory.\n" "This value is the maximum number of files allowed in this directory.\n"
"\n" "\n"
"The value 0 indicates an unlimited number of files will be allowed." "The value `0` indicates an unlimited number of files will be allowed."
"\n"
ADDFILES_HELP
; ;
static char* file_ext_help = static char* file_ext_help =
...@@ -93,6 +96,8 @@ static char* file_ext_help = ...@@ -93,6 +96,8 @@ static char* file_ext_help =
"directory. This is a list of file extensions that are allowed, each\n" "directory. This is a list of file extensions that are allowed, each\n"
"separated by a comma (Example: `ZIP,EXE`). If this option is left\n" "separated by a comma (Example: `ZIP,EXE`). If this option is left\n"
"blank, all file extensions will be allowed to be uploaded.\n" "blank, all file extensions will be allowed to be uploaded.\n"
"\n"
ADDFILES_HELP
; ;
static char* data_dir_help = static char* data_dir_help =
...@@ -100,6 +105,8 @@ static char* data_dir_help = ...@@ -100,6 +105,8 @@ static char* data_dir_help =
"\n" "\n"
"Use this if you wish to place the data directory for this directory\n" "Use this if you wish to place the data directory for this directory\n"
"on another drive or in another directory besides the default setting.\n" "on another drive or in another directory besides the default setting.\n"
"\n"
ADDFILES_HELP
; ;
static char* upload_sem_help = static char* upload_sem_help =
...@@ -347,16 +354,17 @@ void xfer_cfg() ...@@ -347,16 +354,17 @@ void xfer_cfg()
"\n" "\n"
"This is a listing of file libraries for your BBS. File Libraries are\n" "This is a listing of file libraries for your BBS. File Libraries are\n"
"used to logically separate your file `directories` into groups. Every\n" "used to logically separate your file `directories` into groups. Every\n"
"directory belongs to a file library.\n" "directory (database of files available for transfer) must be a child of\n"
"\n" "a file library.\n"
"One popular use for file libraries is to separate CD-ROM and hard disk\n" "\n"
"directories. One might have an `Uploads` file library that contains\n" "To add a library, select the desired position with the arrow keys and\n"
"uploads to the hard disk directories and also have a `PC-SIG` file\n" "hit ~ INS ~.\n"
"library that contains directories from a PC-SIG CD-ROM. Some sysops\n" "\n"
"separate directories into more specific areas such as `Main`, `Graphics`,\n" "To delete a library, select it with the arrow keys and hit ~ DEL ~.\n"
"or `Adult`. If you have many directories that have a common subject\n" "\n"
"denominator, you may want to have a separate file library for those\n" "To configure a library, select it with the arrow keys and hit ~ ENTER ~.\n"
"directories for a more organized file structure.\n" "\n"
ADDFILES_HELP
; ;
i=uifc.list(j,0,0,0,&libs_dflt,&libs_bar,"File Libraries Directories", opt); i=uifc.list(j,0,0,0,&libs_dflt,&libs_bar,"File Libraries Directories", opt);
if((signed)i==-1) { if((signed)i==-1) {
...@@ -526,6 +534,8 @@ void xfer_cfg() ...@@ -526,6 +534,8 @@ void xfer_cfg()
"\n" "\n"
"The left and right arrow keys may be used to cycle through file\n" "The left and right arrow keys may be used to cycle through file\n"
"libraries.\n" "libraries.\n"
"\n"
ADDFILES_HELP
; ;
uifc_winmode_t wmode = WIN_BOT|WIN_SAV|WIN_ACT|WIN_EXTKEYS; uifc_winmode_t wmode = WIN_BOT|WIN_SAV|WIN_ACT|WIN_EXTKEYS;
if(libnum > 0) if(libnum > 0)
...@@ -1652,8 +1662,7 @@ void dir_cfg(uint libnum) ...@@ -1652,8 +1662,7 @@ void dir_cfg(uint libnum)
"either the library's `Parent Directory` (if set) or the data directory\n" "either the library's `Parent Directory` (if set) or the data directory\n"
"(e.g. ../data/dirs)\n" "(e.g. ../data/dirs)\n"
"\n" "\n"
"This path can be overridden on a per-file basis using `Alternate File\n" ADDFILES_HELP
"Paths`.\n"
; ;
while(1) { while(1) {
...@@ -1698,6 +1707,8 @@ void dir_cfg(uint libnum) ...@@ -1698,6 +1707,8 @@ void dir_cfg(uint libnum)
"To delete a directory, select it with the arrow keys and hit ~ DEL ~.\n" "To delete a directory, select it with the arrow keys and hit ~ DEL ~.\n"
"\n" "\n"
"To configure a directory, select it with the arrow keys and hit ~ ENTER ~.\n" "To configure a directory, select it with the arrow keys and hit ~ ENTER ~.\n"
"\n"
ADDFILES_HELP
; ;
i = uifc.list(mode, 0, 0, 0, &dflt, &bar, str, opt); i = uifc.list(mode, 0, 0, 0, &dflt, &bar, str, opt);
if((signed)i==-1) if((signed)i==-1)
...@@ -1870,6 +1881,8 @@ void dir_cfg(uint libnum) ...@@ -1870,6 +1881,8 @@ void dir_cfg(uint libnum)
"\n" "\n"
"The left and right arrow keys may be used to cycle through file\n" "The left and right arrow keys may be used to cycle through file\n"
"directories.\n" "directories.\n"
"\n"
ADDFILES_HELP
; ;
uifc_winmode_t wmode = WIN_SAV|WIN_ACT|WIN_L2R|WIN_BOT|WIN_EXTKEYS; uifc_winmode_t wmode = WIN_SAV|WIN_ACT|WIN_L2R|WIN_BOT|WIN_EXTKEYS;
int prev = prev_dirnum(cfg.dir[i]); int prev = prev_dirnum(cfg.dir[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment