public struct PAKElements {
long IndexPos; // Changes on basis of file being placed in PAK File.
char WCHAR* Group; //What group does it belong to (meshes,. textures...
char WCHAR* File; // what file name.
UINT filesize; // Helps calculate the IndexPos Offset.
};
What I was thinking the program or game would read this PAK file and be able to sort through the file faster by placing the elements in a vector. So, if the game requires to load texture "Sometexture.tga" the game would already know what position to look for because of the vector.
The PAK Data in itself would just be the file's contents placed inside the pack file - is this a right assumption? So instance, a JPEG file content would be stuffed inside the pack file. This is just what comes to mind when I think about a ZIP file. If I ZIP a directory, the files get packed (stuffed) inside the ZIP File.
Another foresight that I saw is that possibly say if I'm loading a texture file - would I acquire the offset pointing to the texture file then scan through til I hit the end of that pointer?
If someone can show me the light on this subject that'll be totally awesomeness!
-Paul