Page 1 of 1
Is there any way to store external content in a dll or container?
Posted: Thu Jun 10, 2021 3:18 pm
by rikintosh
My project has several external files that cannot be embedded, as they are constantly modified, I would like it to be possible to put them in a container or dll, and that the multimedia builder could access them, how could this be done?
Re: Is there any way to store external content in a dll or container?
Posted: Mon Jun 14, 2021 6:06 pm
by Nigg
just use <SrcDir> and place them with the MMB executable
Re: Is there any way to store external content in a dll or container?
Posted: Mon Jun 14, 2021 7:06 pm
by rikintosh
I didn't want to have all these files lying around
Re: Is there any way to store external content in a dll or container?
Posted: Wed Jun 16, 2021 4:30 am
by Nigg
Why? Normally you place your programme in the programme files folder. It makes no difference whether there are files in the folder. Otherwise, you could also unpack them from a 7zip archive at runtime.
Re: Is there any way to store external content in a dll or container?
Posted: Thu Jun 17, 2021 6:19 pm
by rikintosh
because there are 1001 photos and text documents, small files generate fragmentation, all programmers know that. Windows uses dlls for this purpose, games use containers that store their thousands of files for the same reason.
Re: Is there any way to store external content in a dll or container?
Posted: Mon Jun 21, 2021 3:24 pm
by Nigg
Well, fragmentation is practically irrelevant with today's file systems and data carriers. With an SSD, it is of little interest. Above all, look at how some programmes come along - e.g. everything based on Electron or Java. Nothing is "packed" there.
Besides, you don't pack photos or other large binary files in DLLs. Games use container formats mainly for textures, some of which are streamed directly or also unpacked. But the comparison is flawed.
Re: Is there any way to store external content in a dll or container?
Posted: Thu Jun 24, 2021 7:25 pm
by rikintosh
I'm not programming for a modern system, I'm programming for a 25 year old system where this is relevant.Zip would be just a container that I would need to take things out of in order to access them, to use a method like that, I could use a simple windows cab. I wanted something for direct access, like a folder.
Re: Is there any way to store external content in a dll or container?
Posted: Mon Jul 05, 2021 1:10 pm
by Nigg
If compression/decompression takes too much time/is undesirable, then I would recommend an image format like WIM. Mount the image at runtime and unmount it again. This can all be automated. Of course, it depends on the Windows version.
Otherwise, use a different image format and a tool that can mount them, e.g. ISO.