Hiya!
Ran into a pretty large bug with the library here.
Imagine your library path is set to "E:\Doom\PWAD", and then you have subfolders inside like "Requiem" and "NCHUD" that show in the library tree.
If you right click such a subfolder and use one of the "Add all" options, things work - the files list on the first tab gets the full path (e.g. "E:\Doom\PWAD\Requiem\Reqmus.wad").
But if you doubleclick a single file on the files list, or rightclick the file and select "Add to external files", what's added is the "root of the library" plus the file name (e.g. "E:\Doom\PWAD\Reqmus.wad")!
I took a quick glance at the code, and if I'm not totally confused (which I may be, haven't touched Delphi since almost a decade), the issue is with functions
TFrmMain.LibrariesDoubleClick and
TFrmMain.mnuAddToExternalFromListViewClick, inside
zdemain.pas.
Currently they're using
FPWADsPath, which is the config setting for the root folder of the library. I believe they should instead use
treePWADLibraryFolders.Path, which's currently selected folder (as seen in the properly working code for the "add all" menus, e.g.
TFrmMain.mnuAddAllFilesClick). Same for
FIWADsPath vs
treeIWADLibraryFolders.Path.
Second bug - while searching for the path problem, I have noticed that you did add support for .DEH and .BEX files (
TDoomLauncher.ParseExternalFiles inside
doomlauncher.pas).
I'm sad to say that this doesn't work at all for me either (if I'll put any DEHs in the list they are just put together with WADs and PK3s in the "-file" section of the command line) - I originally assumed you just didn't bother to have special support for them (they're rare thesedays, and can be added through the custom command line box when required, which's what I ended up doing).
My first guess after seeing the code was that the string comparison may be case sensitive (most of the DOS era files are all upper case and I don't remember if string comparisons are case sensitive or not in ObjPascal), but renaming the files to lowercase didn't help either. I'm out of ideas about what can be the issue there, to be honest.
Maybe in a while I'll grow desperate enough to set up Lazarus and try to debug this myself, but hopefully there's something obvious that I'm missing but you can easily spot in there...
Thank you very much for creating ZDE - I like it a lot more than any other launcher I've tried, and that's while the bugs above still exist!
