[Gtkradiant] [Bug 197] Implement halflife and halflife mod support (counter-strike)
Sun, 16 Jun 2002 09:24:49 -0500
------- Additional Comments From email@example.com 2002-06-16 09:24 -------
<TTimo> ok, I classify 'valve/mywad.wad/mytex.hlw' as a hack. we are fine to use
it, but we have to put some safe guards around it.
<TTimo> we can't let this hack have such consequences as causing some of the
functions in the VFS API to behave in a hackish way depending on what vfs module
you load for instance
<Hydra> well, how about a vfsGetVfsFullPath() instead ?
<Hydra> then it wouldn't be a hack
<TTimo> what you want, is building a texture name from the wad file you found it
in, and the path inside the wad file
<TTimo> it sounds to me that doing a query 'in which wad file will I found this'
is a legit query
<TTimo> so we have this function then, and HL specific code builds the HL shader
name (shader meaning <path_to_wad>/<path_in_wad>
<Hydra> well, more <wad>/<texture> as i don;t care about the path TO the wad
file, and wad files don;t have paths in them
<TTimo> yeah ok, whatever, as long as this part is in an HL specific area and
doesn't introduce heterogeneity of behaviour in the API
<Hydra> so what. i should go code vfsGetVfsFullPath() then ?
<TTimo> that's no an appropriate name, I'm looking for one
<TTimo> this should take a const char *filename, int index
<Hydra> yeah, what paramaters ?
<TTimo> index to look for the n-th file in the wads
<TTimo> (i.e. after a call to vfsGetFileCount to look inside paks)
<Hydra> or no index = gimme the first one..
<TTimo> default index is 0 yeah
<Hydra> we make the default index an option param then?
<TTimo> this should be a cut and past of the pak scan in vfsGetFileCount actually
<TTimo> typedef int (* PFN_VFSGETFILECOUNT) (const char *filename, int flags = 0);
<TTimo> same for vfsGetPackForFile
<Hydra> okey doke
<Hydra> do you wanna do it or shall i ?
<Hydra> probably best if i do it
<Hydra> then i can test it
<TTimo> yes you should do it
<Hydra> ok, i'll do that then
------- You are receiving this mail because: -------
Whoops! I have no idea!