Module twilight: Change committed

warp at icculus.org warp at icculus.org
Sat Jun 14 19:53:19 EDT 2003


Commiter   : warp
CVSROOT    : /cvs/cvsroot/twilight
Module     : twilight
Commit time: 2003-06-14 23:53:18 UTC

Log message:

While icculus.org was away, I made a few small changes.

The interdiction of src/fs/, it is modular:
  -- dir_posix.c and dir.h are the interface for reading directories.
     (Someone NEEDS to write a dir_win32.c using the same interface as
      in dir.h, or they need to make dir_posix.c work in win32.)
  -- pak.[ch] is the interface for reading pak files.
  -- fs.[ch] is the main 'glue', structs, code to go through things, etc.
  -- fs_hash.[ch] contains a few functions used by the hashing stuff.
  -- fs_new.[ch] deals with adding new files to the FS.
  -- rw_ops.[ch] are a few things that SDL_RWops don't have, but should.

The really evil cases of

#ifdef HAVE_SDL_H
# include "SDL_endian.h"
#else
# include "sdlstub.h"
#endif

scattered about have been changed.

We now include SDL.h from twiconfig.h, deal with it.

Ripped out most (but not ALL) of the file handling code from
common.[ch], made the rest use the new fs interface.

Converted things like Cvar_WriteVars to take SDL_RWops * instead of
FILE *.

Converted the demo system to use the new FS code.

Did the great common kill, the comment before a function no longer
contains the name of the function, if that would have left an empty
comment, the comment as a whole was removed.

Added a newline after the 'Twilight version %s server (%i CRC)' message.

Got /quite/ confused at the handling of QW's running frontend.cfg and
config.cfg, made it better.

Nuked the unused sv_logfile in QW.

Made a lot of other things use the new fs code.

Probably quite a few other things that I don't remember.

Modified files:
     configure.in src/Makefile.am src/base/Makefile.am src/base/cmd.c
     src/base/crc.c src/base/cvar.c src/base/mathlib.c
     src/base/mdfour.c src/base/mod_brush.c src/base/parm.c
     src/base/strlib.c src/base/wad.c src/base/zone.c
     src/client/Makefile.am src/client/cclient.h src/client/console.c
     src/client/keys.c src/client/keys.h src/client/teamplay.c
     src/image/pcx.c src/image/tga.c src/include/common.h
     src/include/cvar.h src/include/mathlib.h src/include/mdfour.h
     src/include/qtypes.h src/include/strlib.h src/include/twiconfig.h
     src/nq/Makefile.am src/nq/cl_demo.c src/nq/cl_ents.c
     src/nq/cl_input.c src/nq/cl_model.c src/nq/cl_parse.c
     src/nq/cl_tent.c src/nq/common.c src/nq/host.c src/nq/host_cmd.c
     src/nq/net_main.c src/nq/pr_edict.c src/nq/progs.h
     src/nq/snd_dma.c src/nq/sv_main.c src/nq/sv_phys.c src/nq/sys.c
     src/nq/world.c src/qw/Makefile.am src/qw/cl_demo.c
     src/qw/cl_ents.c src/qw/cl_input.c src/qw/cl_main.c
     src/qw/cl_model.c src/qw/cl_parse.c src/qw/cl_pred.c
     src/qw/cl_tent.c src/qw/client.h src/qw/common.c
     src/qw/gl_screen.c src/qw/info.c src/qw/net_chan.c
     src/qw/net_udp.c src/qw/pmove.c src/qw/pmovetst.c
     src/qw/pr_cmds.c src/qw/pr_edict.c src/qw/pr_exec.c
     src/qw/progs.h src/qw/server.h src/qw/skin.c src/qw/snd_dma.c
     src/qw/sv_ccmds.c src/qw/sv_ents.c src/qw/sv_init.c
     src/qw/sv_main.c src/qw/sv_model.c src/qw/sv_move.c
     src/qw/sv_phys.c src/qw/sv_send.c src/qw/sv_sys.c
     src/qw/sv_user.c src/qw/sys.c src/qw/view.c src/qw/world.c
     src/renderer/r_part.c src/sound/mem.c

Added files:
     src/base/hash.c src/base/hash.h src/fs/.cvsignore
     src/fs/Makefile.am src/fs/dir.h src/fs/dir_posix.c src/fs/fs.c
     src/fs/fs.h src/fs/fs_hash.c src/fs/fs_hash.h src/fs/fs_new.c
     src/fs/fs_new.h src/fs/pak.c src/fs/pak.h src/fs/rw_ops.c
     src/fs/rw_ops.h
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: twilight.20030614.235318.warp.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20030614/795ade1c/attachment.diff>


More information about the twilight-commits mailing list