Commit Graph

300 Commits

Author SHA1 Message Date
Joshua Kwan 9419e79454 some fixes
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@92 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 17:27:49 +00:00
Joshua Kwan 8da9e3acdc Quick fix
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@84 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 01:57:25 +00:00
Joshua Kwan 4f6bec9c0a It kind of works now. However, we must beware the static buffers that we made
before. They might no longer be enough.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@83 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 01:55:08 +00:00
Joshua Kwan 6901a281a0 First try at the config file system. Still need to change usage of all
the macros, currently, this has no effect on dgamelaunch's functionality.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@82 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 01:25:38 +00:00
Joshua Kwan 4aed9485f4 reindentation
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@80 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 22:49:29 +00:00
Brett Carrington 1adf4dbb69 Stupid pointless TODO: in comment
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@79 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 20:16:59 +00:00
Joshua Kwan 5a623c9d44 Fix problem with people entering initial blank password.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@77 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 12:16:05 +00:00
Joshua Kwan 58d70cd5e3 replace two big conditionals with isalnum(3) calls
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@76 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 12:07:38 +00:00
Joshua Kwan ab14b92451 Ok, readd strlcat.c, use strlcat instead of strncat
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@74 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 07:35:14 +00:00
Jilles Tjoelker 7ad4523dae Provide some feedback to the user that he has a stale game.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@72 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:56:09 +00:00
Joshua Kwan c76193877d fix some typos, add the crew to the copyright blurb
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@71 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:54:01 +00:00
Joshua Kwan b0ba0861ea ok, now it works
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@70 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:35:40 +00:00
Jilles Tjoelker acfec7933e Terminate if user chooses not to kill a hung game, and don't delete lockfile
in that case.
Move purge_stale_locks() call to before final endwin() in main().


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@69 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:31:00 +00:00
Joshua Kwan f20200f40c check for . and ..
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@68 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:28:57 +00:00
Joshua Kwan e9a719ea90 oops, big bug
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@67 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:20:54 +00:00
Joshua Kwan 71f367b1b4 Reindent, and add some error handling for kill
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@66 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:19:12 +00:00
Joshua Kwan 0daf7cdb3b Move gen_inprogress_lock() call to ttyrec.c, with the pid of nethack, and
purge_stale_locks() to remove all stale lockfiles.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@65 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:03:26 +00:00
Brett Carrington 45afd54ca0 graceful_exit, does nothing but please deprecate exit().
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@63 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:45:21 +00:00
Joshua Kwan 873b412c8f update Changelog, screw libiberty
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@62 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:14:36 +00:00
Joshua Kwan ab8fc6018c use strlcpy
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@61 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:05:22 +00:00
Joshua Kwan 4a5f12d4fe always pass F_SETLK to fcntl even when unlocking
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@60 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:00:18 +00:00
Joshua Kwan 2a2f13d3b5 Add strlcpy.c back and fix some locking issues (replace all with fcntl)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@59 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 00:59:48 +00:00
Joshua Kwan 22afce0c28 Revamp the simplemail support
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@58 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 00:21:39 +00:00
Brett Carrington ede1d2cd91 See comments in file (use diff if you can't find them)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@56 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 21:57:22 +00:00
Joshua Kwan d6c195c11e > and < not d and u
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@52 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 04:01:42 +00:00
Joshua Kwan f0770947e7 typo
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@51 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 03:54:16 +00:00
Joshua Kwan d9c2a09b9f fix some errors pointed out by jilles and paxed
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@50 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 03:51:29 +00:00
Joshua Kwan f49aa0e0ef use an ARRAY_SIZE macro if available, if not, #define it
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@49 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 02:10:35 +00:00
Joshua Kwan f35d803c74 fix linux now :)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@44 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 21:00:54 +00:00
Joshua Kwan 3a2b0a7b0d works
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@43 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 20:47:53 +00:00
Joshua Kwan ad799b2374 use setgroups()
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@42 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 20:39:02 +00:00
Joshua Kwan 6f76353da3 First round of BSD fixes. Not done yet.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@38 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 20:31:30 +00:00
Joshua Kwan d829ac26e2 caught_sighup has no real purpose, get rid of it
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@36 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 06:15:30 +00:00
Joshua Kwan 11282a35d6 add function prototypes, fix up arguments of catch_sighup
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@35 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 06:14:34 +00:00
Joshua Kwan 5af442ca9d offload to populate_games function some junk in inprogressmenu. allow infinite
ongoing games.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@34 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 04:35:46 +00:00
Brett Carrington bbfc3bc507 Added `tags' to makefile exclusions. Also, everything is indented now
per `make dist'.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@30 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-01 19:57:58 +00:00
Joshua Kwan f39e3e4e38 use strchr instead of strstr where appropriate. oops.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@27 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-01 02:06:19 +00:00
Brett Carrington 3e9ec53de4 I renamed it to 'bannerfile', 'banfile' is ambigous (perhaps for a future
banner users file?) Also made LOC_BANNER in the header and updated the
chroot script to include the banner and default-rc files.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@25 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 20:21:00 +00:00
Joshua Kwan 8b0af2e9aa I can't stand it anymore, reindenting with 2 spaces,
also add a dgl-banner file that has a $VERSION token that one can put
anywhere, replace VER[1-7] and VERLINES


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@24 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 19:47:49 +00:00
Brett Carrington 82acdecfa1 User is now prompted for their password twice at registration.
Turned echo off during such prompting...
And 'tags' file is in .cvsignore (so I can run ctags *.[ch])


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@21 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 18:14:07 +00:00
Joshua Kwan 8f8b2eadbf stuff
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@20 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 07:18:06 +00:00
Joshua Kwan ade29a3309 tweaked for some Debianisms that should be default anyway
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@17 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 02:39:10 +00:00
Joshua Kwan 85c26142e3 oops
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@16 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 02:04:32 +00:00
Joshua Kwan 701a98c8ed update the message
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@15 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 02:03:05 +00:00
Joshua Kwan 255f93b19d rip out the redundant menu entry now that we can mail in-game
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@14 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 02:02:25 +00:00
Joshua Kwan 363b57f1a2 reindent files, add some glue to allow mailing from within the ttyplay session
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@13 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 01:58:56 +00:00
Joshua Kwan 8c5c5aa5f0 Fix a wrong increment.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@11 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 00:50:58 +00:00
Joshua Kwan c8d5020711 Honor case in login name. Also fix ttyrec path, probably lost in
strcpy->snprintf transition.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@7 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-30 23:33:58 +00:00
Joshua Kwan f85524cf0f some more memory management stuff
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@5 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-30 22:41:47 +00:00
Joshua Kwan f626f44b02 initial commit of new dgamelaunch to CVS
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@1 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-30 21:30:32 +00:00