… | |
… | |
30 | our $LIBDIR = "."; |
30 | our $LIBDIR = "."; |
31 | our $APPDIR = "$LIBDIR/kgsueme"; |
31 | our $APPDIR = "$LIBDIR/kgsueme"; |
32 | our $IMGDIR = "$LIBDIR/images"; |
32 | our $IMGDIR = "$LIBDIR/images"; |
33 | our $SNDDIR = "$LIBDIR/sounds"; |
33 | our $SNDDIR = "$LIBDIR/sounds"; |
34 | |
34 | |
35 | for (qw(util.pl gtk.pl image.pl sound.pl game.pl gamelist.pl room.pl roomlist.pl appwin.pl)) { |
35 | for (qw(util.pl gtk.pl image.pl sound.pl gamelist.pl userlist.pl challenge.pl game.pl room.pl roomlist.pl appwin.pl)) { |
36 | print "loading module $_\n"; |
36 | print "loading module $_\n"; |
37 | require "$APPDIR/$_"; |
37 | require "$APPDIR/$_"; |
38 | } |
38 | } |
39 | |
39 | |
40 | our $appwin = new appwin; |
40 | our $appwin = new appwin; |
41 | |
41 | |
42 | if (0) { |
42 | if (0 && -f "testboard.storable") { |
43 | use KGS::Constants; |
43 | use KGS::Constants; |
44 | |
44 | |
45 | for (19) { |
45 | for (19) { |
46 | my $board = new game %{Storable::retrieve "testboard.storable"}; |
46 | my $board = new game %{Storable::retrieve "testboard.storable"}; |
47 | |
47 | |