Commit 25a20ede authored by rswindell's avatar rswindell
Browse files

Changes for cfg.new_install (forgot to commit before 3.10L release - whoops).

parent f7d8f1d0
......@@ -45,6 +45,7 @@ scfg_t cfg; /* Synchronet Configuration */
uifcapi_t uifc; /* User Interface (UIFC) Library API */
BOOL no_dirchk=FALSE,forcesave=FALSE;
BOOL new_install=FALSE;
static BOOL auto_save=FALSE;
extern BOOL all_msghdr;
extern BOOL no_msghdr;
......@@ -102,7 +103,8 @@ int main(int argc, char **argv)
#endif
)
switch(toupper(argv[i][1])) {
case 'N': /* No EMS, ignore */
case 'N': /* Set "New Installation" flag */
new_install=TRUE;
continue;
case 'M': /* Monochrome mode */
uifc.mode|=UIFC_MONO;
......@@ -797,6 +799,7 @@ To configure a command shell, select it and hit  ENTER .
if(j==-1)
continue;
if(!j) {
cfg.new_install=new_install;
write_main_cfg(&cfg,backup_level);
refresh_cfg(&cfg);
}
......@@ -1903,6 +1906,7 @@ void bail(int code)
read_chat_cfg(&cfg,error);
read_xtrn_cfg(&cfg,error);
uifc.pop(0);
cfg.new_install=new_install;
write_main_cfg(&cfg,backup_level);
write_msgs_cfg(&cfg,backup_level);
write_file_cfg(&cfg,backup_level);
......
......@@ -68,6 +68,7 @@ extern char error[256];
extern char *nulstr;
extern char *invalid_code,*num_flags;
extern int backup_level;
extern BOOL new_install;
/***********************/
/* Function Prototypes */
......
......@@ -843,6 +843,7 @@ E-mail and public posts (on sub-boards).
if(i==-1)
continue;
if(!i) {
cfg.new_install=new_install;
write_msgs_cfg(&cfg,backup_level);
write_main_cfg(&cfg,backup_level);
refresh_cfg(&cfg);
......
......@@ -93,6 +93,7 @@ select No or hit  ESC .
if(!i) {
--cfg.sys_nodes;
/* FREE(cfg.node_path[cfg.sys_nodes]); */
cfg.new_install=new_install;
write_main_cfg(&cfg,backup_level);
refresh_cfg(&cfg);
}
......@@ -129,6 +130,7 @@ If you want to abort the creation of this new node, hit  ESC .
MKDIR(str);
cfg.node_num=++cfg.sys_nodes;
sprintf(cfg.node_name,"Node %u",cfg.node_num);
cfg.new_install=new_install;
write_node_cfg(&cfg,backup_level);
write_main_cfg(&cfg,backup_level);
free_node_cfg(&cfg);
......
......@@ -87,6 +87,7 @@ entire system.
if(i==-1)
break;
if(!i) {
cfg.new_install=new_install;
write_main_cfg(&cfg,backup_level);
refresh_cfg(&cfg);
}
......
......@@ -182,6 +182,7 @@ online external programs (doors).
if(i==-1)
break;
if(!i) {
cfg.new_install=new_install;
write_xtrn_cfg(&cfg,backup_level);
write_main_cfg(&cfg,backup_level);
refresh_cfg(&cfg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment