[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PakFiles



s369625@student.uq.edu.au wrote:

>>int NumberOfFile (const char *FileName);
>>function. This way numerical IDs can also be used for accessing files in
>>third-party PakFiles or Addons released later...
>>
>Weren't we discussing some kind of autogeneration of header files with symbolic
>constants?

Yep, but the autogenerated-header system isn't very flexible. e.g. you can't
use it for Pakfiles added later. The querying system I described above has
no problems with that and isn't significantly slower (uses variables
instead of constants). And you don't have to recompile the game each time
you change something in the PakFile.

However, both systems don't adress the issue of many small, heavily
crossreferenced files Dan described. I'm still not sure whether it's
actually a good thing to use such a design at all, but we should support it
anyway. Perhaps if the above query mechanism works with actual offsets in
the PakFile - but then it would be necessary to specify the PakFile on
calling ppFOpenByNumber (). Not good... Any Ideas? 

Cu
	Christian
--

It's lonely in the saddle since the horse died...