Skip to content
Snippets Groups Projects
Commit 8d98c9c2 authored by rswindell's avatar rswindell
Browse files

Created batch_create_list function to create .dwn file contains user's current batch download list.

parent 2e2c3ea7
No related branches found
No related tags found
No related merge requests found
......@@ -758,6 +758,22 @@ void sbbs_t::batch_add_list(char *list)
CRLF;
}
}
/****************************************************************************/
void sbbs_t::batch_create_list()
{
char str[MAX_PATH+1];
int i;
FILE* stream;
if(batdn_total) {
sprintf(str,"%sfile/%04u.dwn",cfg.data_dir,useron.number);
if((stream=fnopen(NULL,str,O_WRONLY|O_TRUNC|O_CREAT))!=NULL) {
for(i=0;i<(int)batdn_total;i++)
fprintf(stream,"%s\r\n",batdn_name[i]);
fclose(stream);
}
}
}
/**************************************************************************/
/* Add file 'f' to batch download queue. Return 1 if successful, 0 if not */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment