修改xyz.c,在适当的位置加上
int ent_tetris() { //Add bye everlove
char buf[80];
sprintf(buf,"%s %s",currentuser.userid,currentuser.lasthost);
exec_cmd(TETRIS,NA,"so/tetris",buf);
修改game目录下的Makefile
all: winmine game.so tetris
tetris: tetris.c
$(CC) -o tetris tetris.c
重新make,然后将tetris拷贝到so目录下
修改include/modes.h
在最后加上
#define TETRIS 70
修改src/modetype.c
在适当的位置加上
case TETRIS:
return "俄罗斯方块";
然后重新编译您的bbs,make update
修改menu.ini
加上
@TETRIS 0, 0, PERM_POST, "TETRIS", "(T) 俄罗斯方块"
【 在 coooool (yes) 的大作中提到: 】
: FB2000的/home/bbssrc/util/game/目录下有tetris和tetris.c。在linux终端下可以玩
: 俄罗斯方快的,请问如何把它安装到fb200中去?请说详细些。
: 3x!
--
FROM 202.119.32.102