Commit Graph

35 Commits

Author SHA1 Message Date
Pasi Kallinen fecd1b9361 Make sure ipfile malloc gets freed in any case.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@562 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-08 09:02:46 +00:00
Pasi Kallinen 6581664456 Remove support for uuencoded ttyrec output.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@554 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-05 13:59:57 +00:00
Pasi Kallinen ce1dd29060 Output some identifying info to the first frame of the ttyrec.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@553 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-05 13:37:40 +00:00
Pasi Kallinen ef7d6eb846 Define menu_max_idle_time option to kill dgl when the user idles too long. From Darshan Shaligram
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@531 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-03-02 18:32:57 +00:00
Pasi Kallinen 9934d365bd Allow dgamelaunch to kill processes that are idle for too long with SIGHUP. From Darshan Shaligram
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@530 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-03-02 18:02:51 +00:00
Pasi Kallinen 972bb6fa6b Add per-game configurable ttyrec-dir; If it's not defined for some game,
no ttyrecs are saved for that game, and those games cannot be spectated.

Add more debugging output to dgldebug.log -file

Add configure option --enable-debugfile to enable or disable the debugging log.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@468 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-17 20:26:56 +00:00
Pasi Kallinen 39456b7a75 Make dgl-create-chroot -script work again.
Change the dgldir directory layout; all rcfiles, dumps and ttyrecs are now under dgldir/userdata/USERNAME/


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@466 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2009-10-17 17:34:36 +00:00
Pasi Kallinen 2b909a3610 Return to dgamelaunch after the game ends.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@420 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-13 20:34:43 +00:00
Pasi Kallinen 4f95c35047 Remove the old mkdir and chdir options to prevent lex collisions
with the commands mkdir and chdir


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@395 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 18:13:54 +00:00
Pasi Kallinen 4e509075f4 Add new config file value 'mkdir', and allow variables in mkdir and chdir
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@355 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-01 12:09:42 +00:00
Pasi Kallinen 59254ed4b7 Add 'chdir' per-game config variable, which defines the dir where dgl will chdir to before executing the game.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@350 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 21:05:12 +00:00
Pasi Kallinen 7ec2c4b9cc Allow more than one game per dgl installation.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@345 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-29 20:14:55 +00:00
Jilles Tjoelker 20b453bfde Include config.h in ttyrec.c (tried to use STREAMS on FreeBSD)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@324 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-28 12:39:23 +00:00
Joshua Kwan 4d45d4d263 move junk around, genericize things
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@287 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-04-03 19:27:42 +00:00
Joshua Kwan 6e01003303 Maybe this'll do it.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@234 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-13 23:15:03 +00:00
Joshua Kwan 09b7c71f72 attempt to remove the inprogress file on an unclean termination
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@222 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-03 03:02:19 +00:00
Joshua Kwan 39100e0631 a few security fixes
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@219 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-02 23:28:17 +00:00
Joshua Kwan 71925d116e Fix some minor fallout.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@188 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-30 02:52:23 +00:00
Joshua Kwan 6f11c9053a Regenerate dependencies, function prototypes, remove useless includes, globals,
and make code more readable. Move externs into a header file, just tidying up.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@186 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-30 02:49:29 +00:00
Joshua Kwan aaaa35c525 Fix some stuff related to HUP'ping processes (not completely fixed yet)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@181 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-28 16:31:37 +00:00
Joshua Kwan c4932ed44b Cleanups - globals, extraneous #defines, #include order, etc.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@161 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-25 22:34:35 +00:00
Jilles Tjoelker 1a081cc170 Solaris compatibility.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@123 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-16 16:36:33 +00:00
Joshua Kwan 9a272b46c6 union wait is deprecated on any unix worth shit. don't use it. ever.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@116 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-12 17:24:14 +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 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 c9ed0149c6 erp
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@41 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 20:37:53 +00:00
Joshua Kwan 23540a34cd more BSD fixes
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@39 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 20:36:55 +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 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
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 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 f43227eb3c oops, fix wrong location of mkdir call
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@3 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-30 22:41:04 +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