… | |
… | |
25 | |
25 | |
26 | if ($HACK) { |
26 | if ($HACK) { |
27 | $KGS::debug = 1; |
27 | $KGS::debug = 1; |
28 | } |
28 | } |
29 | |
29 | |
|
|
30 | BEGIN { |
30 | our $VERSION = "0.1"; |
31 | our $VERSION = "0.1"; |
31 | |
32 | |
32 | our $config; |
33 | our $config; |
33 | our $LIBDIR = "."; |
34 | our $LIBDIR = "."; |
34 | our $APPDIR = "$LIBDIR/kgsueme"; |
35 | our $APPDIR = "$LIBDIR/kgsueme"; |
35 | our $IMGDIR = "$LIBDIR/images"; |
36 | our $IMGDIR = "$LIBDIR/images"; |
36 | our $SNDDIR = "$LIBDIR/sounds"; |
37 | our $SNDDIR = "$LIBDIR/sounds"; |
37 | |
38 | |
38 | for (qw(util.pl gtk.pl image.pl sound.pl gamelist.pl userlist.pl challenge.pl |
39 | for (qw(util.pl gtk.pl image.pl sound.pl gamelist.pl userlist.pl challenge.pl |
39 | board.pl game.pl room.pl roomlist.pl appwin.pl)) { |
40 | board.pl game.pl room.pl roomlist.pl appwin.pl)) { |
40 | print "loading module $_\n"; |
41 | print "loading module $_\n"; |
41 | require "$APPDIR/$_"; |
42 | require "$APPDIR/$_"; |
|
|
43 | } |
42 | } |
44 | } |
43 | |
45 | |
44 | our $appwin = new appwin; |
46 | our $appwin = new appwin; |
45 | |
47 | |
46 | if (0) { |
48 | if (0) { |