https://gitlab.synchro.net/main/sbbs/-/commit/11ed829bb49699d83b95c241
Modified Files:
ctrl/file.ini docs/v322_new.md src/sbbs3/filedat.c sbbsdefs.h src/sbbs3/scfg/scfgindex.h scfgxfr1.c src/sbbs3/scfgdefs.h
Log Message:
Viewable/testable file types, download events: file extension lists
The file extension of a Viewable File Type, Testable File Type or
Download Event may now be a comma-separated list of extensions (e.g. "jpg,jpeg,png"), so that one entry covers every file type its command
line handles. file_type_match() tries each element of the list (each
may still contain wildcards), and the "extension" value of these
file.ini sections may be up to 255 characters long (was 15). An
existing single-extension entry is read and matched as before.
Extractable and Compressible File Types still take one extension.
SCFG:
- The "File Extensions" option of these entries is edited as a list of
extensions (Insert, Delete, cut/copy/paste), stored comma-separated.
Duplicates are refused and the last extension can't be deleted.
- The extension column of the three lists widens to fit the longest
entry, as far as the screen width allows, and a longer list is
abbreviated with "...".
- Regenerated the option search index, which also adds the Scan Config
and QWK Section loadable module options that were missing from it.
The stock file.ini viewers that share a command line are combined:
one for the text file types and one for the fileinfo.js media types,
which gains OPUS, OGA, MIDI, M4V and ASF.
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>
--- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)