| 18 |
#include "bbs.h" |
#include "bbs.h" |
| 19 |
#include "common.h" |
#include "common.h" |
| 20 |
#include "io.h" |
#include "io.h" |
| 21 |
|
#include "menu.h" |
| 22 |
#include <string.h> |
#include <string.h> |
| 23 |
|
|
| 24 |
void |
void |
| 133 |
if (load_conf(file_config)<0) |
if (load_conf(file_config)<0) |
| 134 |
exit(-2); |
exit(-2); |
| 135 |
|
|
| 136 |
|
//Load menus |
| 137 |
|
strcpy(file_config, app_home_dir); |
| 138 |
|
strcat(file_config, "conf/main_menu.conf"); |
| 139 |
|
if (load_menu(&bbs_main_menu, file_config)<0) |
| 140 |
|
exit(-3); |
| 141 |
|
|
| 142 |
//Initialize socket server |
//Initialize socket server |
| 143 |
net_server(BBS_address, BBS_port); |
net_server(BBS_address, BBS_port); |
| 144 |
|
|