I'm currently learning how to compress files, so what i am going to do aswell is compress it into one file. (this part isn't why i made this thread)
However, say i did have it compressing and uncompressing 100%, but this data was being stored in a char, how would i tell dark basic, to instead of load from a file, but to load the data from this char?
[Edit] reworded.
Old Version:
I want to learn how to compress media files, so i guess what i do is i put all the media into one file compressing each one at a time with some sort of compression algorithm.
However, that part isnt what is concerning me, what is concerning me is the fact that how will DarkGDK know how to open this data.
My idea is that i split this file up in a logical way so i can easily see all the files and then i can read them into c++ by reading the document after it has defined that files name, but if i have this data inside c++ floating around in a char or whatever, after i have uncompressed it how would i get dark GDK to know whats what?
like:
<F="TerrainHeightmap" T="JPG">
<c>
compressed file content
</c>
<F="TerrainDetail" T="PNG">
<c>
compressed file content
</c>
Smoke me a kipper, ill be back for breakfast.