5 #define GAME_NAME_LEN 32
6 #define GAME_DIR_LEN 32
7 #define GAME_COMMAND_LEN 100
8 #define GAME_FILE_LEN 64
13 typedef struct game_info
16 char name
[GAME_NAME_LEN
];
17 char dir
[GAME_DIR_LEN
];
18 char command
[GAME_COMMAND_LEN
];
22 char file
[GAME_FILE_LEN
]; // two file names are separated by 0
23 char *copy
; // point inside str[]
26 struct game_info
*prev
, *next
;
30 game_info
* load_gamelist (void);
31 void free_gamelist (game_info
*gamelist
);