Close and re-open the temporary file for reading Printf("Can't open temporary data file.\n") Printf("Can't open output file '%s'\n",argv) If((outfile = fopen(argv, "wb+")) = NULL) Printf("Can't open input file list '%s'\n",argv) Printf("- makepak - creates a PAK file from a file list -\n\n") Seem a bit odd at times, or the code a little redundant, you know why.įILE *infile, *outfile, *tfile, *copyfile Įxtern long LZCompress(unsigned char *CompDataBuff, unsigned char *UncompDataBuff, unsigned long UncompDataSize) The following is actually just a quick modification of makesol.c, so if the comments Number of entries in table = ("DataStartOffset" - 8) / 4 If the offset has 0圎0 in its high byte, this entry is effectively ![]() The true offset is (Offset & ~0x40000000) and the first DWORD If an offset has a 0x40 in its high byte, it is compressed, and PAK file format (Nearly identical to the SOL/PKK/MPK/SAV file formats)Ġ00000 DWORD PAK File Identifier (value is always 0xFEEDFACE)Ġ00004 DWORD Offset where file data actually startsĠ00008 DWORD*n Table of offsets to the data in the file. It can export any content of any pak file but the function to create NEW PAK files doesn't work. But in fact, the version i own doesn't pack new files. ![]() ![]() This tool should allow unpacking & repacking of PAK file source for MechCommander.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |