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
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4066 passed
......@@ -22,6 +22,7 @@
#include <stdbool.h>
#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*);
......@@ -83,7 +84,9 @@ static char* max_files_help =
"\n"
"This value is the maximum number of files allowed in this directory.\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 =
......@@ -93,6 +96,8 @@ static char* file_ext_help =
"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"
"blank, all file extensions will be allowed to be uploaded.\n"
"\n"
ADDFILES_HELP
;
static char* data_dir_help =
......@@ -100,6 +105,8 @@ static char* data_dir_help =
"\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"
"\n"
ADDFILES_HELP
;
static char* upload_sem_help =
......@@ -347,16 +354,17 @@ void xfer_cfg()
"\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"
"directory belongs to a file library.\n"
"\n"
"One popular use for file libraries is to separate CD-ROM and hard disk\n"
"directories. One might have an `Uploads` file library that contains\n"
"uploads to the hard disk directories and also have a `PC-SIG` file\n"
"library that contains directories from a PC-SIG CD-ROM. Some sysops\n"
"separate directories into more specific areas such as `Main`, `Graphics`,\n"
"or `Adult`. If you have many directories that have a common subject\n"
"denominator, you may want to have a separate file library for those\n"
"directories for a more organized file structure.\n"
"directory (database of files available for transfer) must be a child of\n"
"a file library.\n"
"\n"
"To add a library, select the desired position with the arrow keys and\n"
"hit ~ INS ~.\n"
"\n"
"To delete a library, select it with the arrow keys and hit ~ DEL ~.\n"
"\n"
"To configure a library, select it with the arrow keys and hit ~ ENTER ~.\n"
"\n"
ADDFILES_HELP
;
i=uifc.list(j,0,0,0,&libs_dflt,&libs_bar,"File Libraries Directories", opt);
if((signed)i==-1) {
......@@ -526,6 +534,8 @@ void xfer_cfg()
"\n"
"The left and right arrow keys may be used to cycle through file\n"
"libraries.\n"
"\n"
ADDFILES_HELP
;
uifc_winmode_t wmode = WIN_BOT|WIN_SAV|WIN_ACT|WIN_EXTKEYS;
if(libnum > 0)
......@@ -1652,8 +1662,7 @@ void dir_cfg(uint libnum)
"either the library's `Parent Directory` (if set) or the data directory\n"
"(e.g. ../data/dirs)\n"
"\n"
"This path can be overridden on a per-file basis using `Alternate File\n"
"Paths`.\n"
ADDFILES_HELP
;
while(1) {
......@@ -1698,6 +1707,8 @@ void dir_cfg(uint libnum)
"To delete a directory, select it with the arrow keys and hit ~ DEL ~.\n"
"\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);
if((signed)i==-1)
......@@ -1870,6 +1881,8 @@ void dir_cfg(uint libnum)
"\n"
"The left and right arrow keys may be used to cycle through file\n"
"directories.\n"
"\n"
ADDFILES_HELP
;
uifc_winmode_t wmode = WIN_SAV|WIN_ACT|WIN_L2R|WIN_BOT|WIN_EXTKEYS;
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