Commit Graph

378 Commits

Author SHA1 Message Date
Pasi Kallinen 3a4a499113 Define both USE_SQLITE3 and USE_SQLITE_DB when --enable-sqlite and/or --sqlite-db is given.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@388 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2008-01-01 11:28:51 +00:00
Pasi Kallinen ad74bfdd77 No need to check for buffer existence, gets rid of warnings
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@387 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-30 09:00:16 +00:00
Pasi Kallinen 19a66fc451 configure sorts the config.h defines alphabetically,
so change DGL_SQLITE_DB to USE_SQLITE_DB so it's next to USE_SQLITE3.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@386 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-30 08:44:02 +00:00
Pasi Kallinen 6dbf5f4728 Unify the flat-text and sqlite handling
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@385 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-30 08:29:28 +00:00
Pasi Kallinen 8a69418237 Changelog typo, whoops
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@384 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-30 08:05:25 +00:00
Pasi Kallinen 3c4f053599 Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@383 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-29 01:55:03 +00:00
Pasi Kallinen de9c0c60c9 Update the autotools stuff to allow sqlite handling.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@382 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-29 01:01:07 +00:00
Pasi Kallinen 4145814352 Fix convert script test for already existing db file
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@381 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-28 23:45:15 +00:00
Pasi Kallinen 60be87ff9a Improve the conversion script
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@380 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-28 12:41:46 +00:00
Pasi Kallinen 8ced697836 Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@379 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-28 12:02:58 +00:00
Pasi Kallinen ffb264cb7c Update Changelog
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@378 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-28 11:53:19 +00:00
Pasi Kallinen 0633108e74 Fix the sqlite3 addition: Newly registered nicks shouldn't interfere with already registered ones.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@377 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-28 10:01:35 +00:00
Pasi Kallinen 843b212de7 Remove some fixme-comments which are done already.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@376 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-27 23:48:25 +00:00
Pasi Kallinen 56ba2a56b6 When the sqlite db is locked, retry up to ten times, sleeping one second between tries.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@375 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-27 23:44:09 +00:00
Pasi Kallinen 46fbda0887 Add a shell script to convert the old flat-text database to sqlite database.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@374 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-27 19:54:05 +00:00
Pasi Kallinen 9858f42424 Allow SQLite for the user login database, instead of the flat text file.
Define USE_SQLITE3 in the config.h, and define DGL_SQLITE_DB as the
database file to be used.  Note that sqlite must have write access to
the directory where the db file is.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@373 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-27 19:52:48 +00:00
Pasi Kallinen 877b3e777c Simplify the watching-screen sorting.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@372 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-25 16:27:30 +00:00
Pasi Kallinen 9875eb144e Changelog update
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@371 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-24 23:17:24 +00:00
Pasi Kallinen ec7a1c5675 TODO update
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@370 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-24 18:11:26 +00:00
Pasi Kallinen 4c0614da1c Allow sorting the watching-screen names by either name or idle-time. (Based slightly on a patch by Dragonizer)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@369 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-24 18:09:15 +00:00
Joshua Kwan 7b437cd518 1.4.7
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@368 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-22 22:39:54 +00:00
Joshua Kwan 0dbf1fe244 release 1.4.7
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@364 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-22 21:05:21 +00:00
Pasi Kallinen d367cba07d Add some TODO stuff
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@363 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-22 21:04:03 +00:00
Joshua Kwan e47264d87e fix typo
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@362 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-07-05 04:05:41 +00:00
Pasi Kallinen abb8f106f6 Fix a bug; inprogress-dir is now configurable, so use that string length for str alloc instead of assuming it's 11 chars.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@361 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-06-11 19:40:51 +00:00
Pasi Kallinen 7b3bcd72d7 Config-file variable allow_new_nicks
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@360 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-09 16:42:14 +00:00
Pasi Kallinen 2659d92164 Update TODO ideas
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@359 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-09 12:57:45 +00:00
Pasi Kallinen f4a322f996 Fix segfault when no mkdir or chdir defined
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@358 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-06 23:13:06 +00:00
Pasi Kallinen d107435cff Update TODO
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@357 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-02 18:35:56 +00:00
Pasi Kallinen 9fc8adb586 Update example config file
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@356 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-01 16:06:50 +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 1feff8677b Watching menu shows what game the players are playing
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@354 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-01 10:11:38 +00:00
Pasi Kallinen 71cbbcbd04 Expand the example config file
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@353 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 21:31:52 +00:00
Pasi Kallinen d5636ad844 lockfile is global, not per-game variable
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@352 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 21:29:45 +00:00
Pasi Kallinen 89825b1ca4 passwd file is global config, not per-game
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@351 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 21:18:32 +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 f64b9da317 Fix watching, thanks to Jilles!
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@349 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 16:21:58 +00:00
Pasi Kallinen c0b1bdfa8e Fix inprogress file name truncation
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@348 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 15:17:26 +00:00
Pasi Kallinen 731caa2fcf Allow setting max nick length in the dgl config file, while still retaining backwards compatibility with old-style, up to 20-char
long nicks.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@347 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 11:10:07 +00:00
Pasi Kallinen 687239516b Update Changelog
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@346 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-29 20:25:35 +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
Joshua Kwan ee906001f2 fix all sorts of stuff with dgl-create-chroot
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@344 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2006-07-09 07:04:09 +00:00
Joshua Kwan f3239d7a2f Update svn info, use $(DESTDIR)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@343 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2005-01-02 10:31:59 +00:00
Joshua Kwan 683aa5879b one more dummy commit
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@342 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-09-12 09:05:06 +00:00
Joshua Kwan fbcaeb1837 dummy commit to check bdb import
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@341 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-09-12 09:01:59 +00:00
Joshua Kwan 8b30520189 dummy commit to check bdb import
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@340 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-09-12 09:01:59 +00:00
Joshua Kwan 3494f125ce dummy commit to check bdb import
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@339 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-09-12 09:01:59 +00:00
Joshua Kwan 7e976aa770 use a copy of the environment variable instead of the actual spot on the heap
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@338 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-09-12 08:58:32 +00:00
Jilles Tjoelker debd70f269 Use select() if kevent() does not work, e.g. file on msdosfs.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@337 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-08-28 21:30:54 +00:00
Jilles Tjoelker 8038fbe363 Use kqueue() if available (FreeBSD) to improve watching.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@336 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-08-23 14:00:29 +00:00