]> skyeroc.xyz Git - dgamelaunch/commit
Two new things:
authorPasi Kallinen <paxed@alt.org>
Tue, 1 Jan 2008 17:03:05 +0000 (17:03 +0000)
committerPasi Kallinen <paxed@alt.org>
Tue, 1 Jan 2008 17:03:05 +0000 (17:03 +0000)
commit24cb396d1611c7578e41ebeec21d1844fa7d7c57
tree3ae2a2802ea100a5732736532ce09912c80c66ec
parent41d038ef3e020a3e8b1c20a46c8cf38dda1a20b5
Two new things:

1) Allow admin to define some commands that are run when something happens.
   format is

commands [ <time> ] = <command> ...

<time> can be one of:
 login     = when user logs in
 dglstart  = when someone telnets in
 register  = when a new user is registered
 gamestart = when a game is started

<command> is:
 mkdir "foo"       = creates a directory "foo"
 chdir "foo"       = changes current work dir to "foo"
 cp "foo" "bar"    = copies file "foo" to "bar"
 unlink "foo"      = deletes file "foo"
 setenv "foo "bar" = sets environment variable "foo" to "bar"

For example

commands[login] = mkdir "foo", unlink "bar", setenv "Z" "foo"

You can also define per-game commands that are executed when
the game is started.

2) Defining game info in the config file has changed slightly.
   Put "DEFINE { ... }" around the game-specific stuff.

See the example config file.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@391 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
TODO
config.l
config.y
dgamelaunch.c
dgamelaunch.h
dgl-common.c
examples/dgamelaunch.conf