Well, I wouldn't
It only came to my attention since Dosbox74.pnd makes use of this. This gives following thoughts:
- There must be a way to include empty directories in squashfs. (Maybe the Gnu/Linux mksquashfs adds empty folders, maybe it's been done via zip.)
Interesting, you might be right in your assumption - apart from that it also could be another version of squashFS which does this.
- I could imagine a scenario where the application tries to write into those folders without checking if they exist, so I couldn't build a working pnd with PNDtools for this app (I could probably work around this one with PRE-scripts resp. modifying the startup-scripts, but the cause might be hard to find).
The thing is, the application CANNOT write to those folders as by default all read/write calls will be redirected to the appdata folder, while the folder is inside the PND/mounted directory. You would have to manually navigate to the temporary mounted folder and write there, which is kinda stupid (you cannot write to the PND file that way anyway and temporary data could just be stored on RAM).
So I really don't see the use of this, but maybe I am missing something here.
It's Windows 7 64bit. I attached a screenshot with 2 files, settings.ini and chmod.bat, added.
Interesting, I assume those files have the correct icon in Windows explorer. It seems like the icon lookup returns an invalid icon ID, so the application reverts to ID 0, which is the folder icon (with 1 being the blank file icon), maybe I can catch this and show the file icon instead on an error (since I assume this will mostly happen for files). Or just display no icon.
I was thinking about that being a possibility. (I'm very new to all this.) Could an included PXML.xml override an appended one?
Technically this is possible, but it has not been implemented anywhere and there has not popped up a useful scenario for it either (It could be used for supplying multiple configurations, but you can do that with multiple application tags now, too).
The PXML file and icon are appended because it's faster to read them that way as you don't have to mount the PND/squashFS (just search the PND file backwards for the PXML/icon file headers).
By default I only include the icon (and not the PXML), since the icon might also be used as an asset in the application (the PXML most likely is not, so it will only be appended, unless you manually add it, too).