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

Support new/optional display file: text/menu/fileinfo.*

If this menu file exists, it'll be used to display file information (e.g.
when using 'E'xtended info or 'D'ownload commands) instead of the Fi* text.dat
strings.

Allowing more customization options for file information displays.
parent 490e86fa
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,7 @@ void sbbs_t::showfileinfo(file_t* f, bool show_extdesc) ...@@ -34,6 +34,7 @@ void sbbs_t::showfileinfo(file_t* f, bool show_extdesc)
current_file = f; current_file = f;
getfilepath(&cfg, f, path); getfilepath(&cfg, f, path);
if(!menu("fileinfo", P_NOCRLF | P_NOERROR)) {
bprintf(P_TRUNCATE, text[FiLib], getusrlib(f->dir), cfg.lib[cfg.dir[f->dir]->lib]->lname); bprintf(P_TRUNCATE, text[FiLib], getusrlib(f->dir), cfg.lib[cfg.dir[f->dir]->lib]->lname);
bprintf(P_TRUNCATE, text[FiDir], getusrdir(f->dir), cfg.dir[f->dir]->lname); bprintf(P_TRUNCATE, text[FiDir], getusrdir(f->dir), cfg.dir[f->dir]->lname);
bprintf(P_TRUNCATE, text[FiFilename],f->name); bprintf(P_TRUNCATE, text[FiFilename],f->name);
...@@ -96,6 +97,7 @@ void sbbs_t::showfileinfo(file_t* f, bool show_extdesc) ...@@ -96,6 +97,7 @@ void sbbs_t::showfileinfo(file_t* f, bool show_extdesc)
if(timetodl > 0) if(timetodl > 0)
bprintf(text[FiTransferTime],sectostr(timetodl,tmp), cur_cps); bprintf(text[FiTransferTime],sectostr(timetodl,tmp), cur_cps);
bputs(P_TRUNCATE, text[FileHdrDescSeparator]); bputs(P_TRUNCATE, text[FileHdrDescSeparator]);
}
if(show_extdesc && f->extdesc != NULL && *f->extdesc) { if(show_extdesc && f->extdesc != NULL && *f->extdesc) {
char* p = f->extdesc; char* p = f->extdesc;
SKIP_CRLF(p); SKIP_CRLF(p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment