-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
39 lines (29 loc) · 1.02 KB
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Main entry point.
// Also contains some utility functions and keeps the thing running.
#include "common.h"
// my contribution to those in the Avoid Using C++ Front
// and the C++ Should Die A Horrible Death In A Fire Front.
void (*fptr_logic)(void) = NULL; // called every 50Hz when possible
void (*fptr_video)(void) = NULL;
/* returncode = int main(int argc, char *argv[]):
* Entry point into this wonderful program.
*/
int main(int argc, char *argv[])
{
if(sys_init())
return 1;
atexit(sys_exit);
if(network_init())
return 1;
atexit(network_exit);
printf("************************************************************\n");
printf("FRench INGEnuity (C) 2010, BattleOfTheBits.org\n");
printf("Based on CreepSmash available @ creepsmash.com (english ver)\n");
printf("Licensed under GPLv3 - see LICENCE file for text\n");
printf("************************************************************\n");
fptr_logic = menu_fptr_init;
fptr_video = NULL;
sys_main();
return 0;
}
END_OF_MAIN(); /* Allegro requirement */